Open ReneB opened 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.
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.'
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.
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
Added the initializer - it may contain scaffolding for injecting the group_checker
dependency.
Two generators come to mind:
install
, which would contain:app/roles
directorygroup_checker
dependency.context_role
, which would generate:app/roles
with a skeletal layout (possibly in a subdirectory!)