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
Is there a way to put different roles into their own files and then include those files in authorization_rules.rb? This would make it much easier to debug large permission sheets.
The text was updated successfully, but these errors were encountered:
I tried to do this, since my rules are piling up, too. Since it is possible to have multiple class to authorization I was hoping I could simply load other files from withing authorization_rules.rb, but it didn't work. 😦
It looks like the DSL functions are not available in loaded files. (Exception is: Illegal DSL syntax: undefined method `authorization' for main:Object) Looks like the eval context is lost.
Is there a way to put different roles into their own files and then include those files in authorization_rules.rb? This would make it much easier to debug large permission sheets.
The text was updated successfully, but these errors were encountered: