You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that when to_prepare is invoked on Rails 3.2 reloading is not yet complete, and the Object namespace is still populated with the old constants (speculating, in-depth analysis not done).
Designators lookup should be evaluated lazily.
Workaround
Forcibly reload designators implementations at the top of config/authorization.rb:
# HACK HACK HACK HACK# Work around Eaco bug https://github.com/ifad/eaco/issues/3# FIXME FIXME FIXME#ifRails.env.development?load'./app/models/user.rb'Dir['./app/models/user/designators/*.rb'].each{|f| loadf}end
The text was updated successfully, but these errors were encountered:
It seems that when to_prepare is invoked on Rails 3.2 reloading is not yet complete, and the Object namespace is still populated with the old constants (speculating, in-depth analysis not done).
Designators lookup should be evaluated lazily.
Workaround
Forcibly reload designators implementations at the top of
config/authorization.rb
:The text was updated successfully, but these errors were encountered: