ogd-software / arrthorizer

Dynamic and static access control for your Rails (3+) application, all in one nice little package.
MIT License
0 stars 1 forks source link

Add generators for Rails environments #7

Open ReneB opened 10 years ago

ReneB commented 10 years ago

Two generators come to mind:

ryreitsma commented 10 years ago

Maybe the install could also include a Rails initializer? It would be nice if the initializer included all config options with defaults, but then commented out. That way you can see the defaults and easily configure them.

ReneB commented 10 years ago

Definitely true @ryreitsma. At this juncture, I should probably also point out that we created a wiki page on features like this (this was one of the first things we did for this project), which is located here and documents our requirements for 'ease of use.'

ReneB commented 10 years ago

Currently unsure whether an initializer is needed at all - I'm now trying to configure the load paths from the Railtie itself. Tricky business, that.

ReneB commented 10 years ago

And again, Rails proves itself cooler than previously thought. Any directory under 'app' is already in the load path, no further configuration needed. See Jose Valim's comment here

ReneB commented 10 years ago

Added the initializer - it may contain scaffolding for injecting the group_checker dependency.