Mountable engine

Skip to first unread message

Jakub Racek

Feb 7, 2013, 7:00:18 AM2/7/13
Hello is it possible to work with declarative_authorization inside a mountable engine please ? Let's say I have a model called Dog inside an engine Zoo. So the constant is Zoo::Dog instead of just Dog. When Im trying it it says "uninitialized constant Dog". Is there a way to force DA to use the Zoo prefix module as a prefix for the Dog model? The best would be an option for the filter_resource_access method because we are using DA in normale rails application (without those prefixes) but I want also use them inside an engine which is mounted to the rails app. Thank you!
Reply all
Reply to author
0 new messages