as_action_aliases is a method in Ability class, not related to controller That method is added to Ability class when bridge is loaded, maybe you need to load bridge in your unit tests (ActiveScaffold::Bridges::CanCan.install)
El Miércoles, 18 de febrero de 2015 17:45:21 'Andrey Korobkov' via ActiveScaffold : Ruby on Rails Gem escribió: > Hello, > > Just found an issue with #as_action_aliases being called from CanCan Ability > model (app/models/ability.rb). In development mode all is OK, but when > running tests, using authorization by the rules, specified in this model, I > have "method not found" error… > > Seems strange for me. Looks like #as_action_aliases becomes available for > controllers in some custom way, which I still don't understand and so can't > apply it to my Ability model. Could you, please, make it more clear, how > (if possible) to make it work in this case? > > thanks in advance, -- You received this message because you are subscribed to the Google Groups "ActiveScaffold : Ruby on Rails Gem" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/activescaffold. For more options, visit https://groups.google.com/d/optout.
