bisscomm / refinerycms-products

Products extension for Refinery CMS
MIT License
9 stars 11 forks source link

Uninitialized Refinery::Products::Categories::Finder #14

Closed vlebedeff closed 8 years ago

vlebedeff commented 9 years ago

When I edit the code without restarting a development web server, I get

NameError: uninitialized constant Refinery::Products::Categories::Finder

It goes away after a restart, but it's a pain.

bricesanchez commented 9 years ago

Yes, it's the same issue than #11, i don't know yet why it occurs.

vlebedeff commented 8 years ago

@bricesanchez It looks like I've worked around it with

require_dependency 'refinery/products/categories/url'
require_dependency 'refinery/products/categories/finder'

added to config/initializers/refinery/products.rb.

Don't know whether it's a good practice, but it saves me from restarts.