I’ve been using LoginEngine and UserEngine in an app I’m developing and
I’ve reached a stage where I’d like to be able to provide more granular
filtering possibilities. At the moment I’m not quite sure how to go
about the actual filtering of results from .find*, but that can wait
until later on. What I want to get started on is providing Groups which
can be assigned a Permission. These Groups are functionally similar to
the Roles in UE, with the difference that any user can create their own
set of groups ( assigning users and permissions etc ). The Permissions
are also similar to those in UE, except they aren’t tied to a
I’m wondering what the best way might be to achieve this, i see a couple
create a new engine and base it off UserEngine but changed to suit my
write some classes/modules to fit in between LoginEngine and
UserEngine, that UE can then be layered on top of while also providing
the framework to accomplish my ACL goals.
override UserEngine and add on the extra bits necessary.
As I’m a noob when it comes to ruby/rails, option 1 seems like the
easiest option to start with, but 2 seems like the better longer term
Apologies for not elaborating further, it’s late here and i just wanted
to bang this out before turning in. If anyone’s got any suggestions or
questions, fire away
Oh, and second appolgies if this should have gone to the Dev list.
Those who do not remember the past are condemned to repeat it
– George Santayana