Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Breaking up authorization_rules.rb by role #191

Open
Flagship8787 opened this issue Dec 24, 2013 · 1 comment
Open

Breaking up authorization_rules.rb by role #191

Flagship8787 opened this issue Dec 24, 2013 · 1 comment
Labels

Comments

@Flagship8787
Copy link

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.

@daniel-rikowski
Copy link

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.

@stffn stffn added the feature label Apr 1, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants