Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

EnumerableExhibit is not ever loaded #26

Closed
leehambley opened this Issue Dec 10, 2012 · 3 comments

Comments

Projects
None yet
2 participants

Without something such as

# config/initializers/display_case.rb
require 'display_case/enumerable_exhibit'

The enumerable exhibit is never loaded and exhibit(Widget.all) doesn't change anything.

The workaround with an initialiser is OK, but preferable would be to load that in ./lib/display_case/display_case.rb

(Regarding my suggestion to load this in ./lib/display_case/display_case.rb, it appears it is already supposed to be loaded https://github.com/objects-on-rails/display-case/blob/master/lib/display_case.rb#L3 - I'm going to chalk this up to Rails lazy loading, or something) but I can't make this work without the explicit require in the initialiser.

Member

codeodor commented Dec 10, 2012

Lee,

What environments are you seeing this in (dev, production, etc)?

Also, can you check the version of the gem that's loaded?

Thanks!

Sam

Closing because #27 is the real problem. Verified with DisplayCase::Exhibit.exhibits

@leehambley leehambley closed this Dec 10, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment