Simple and flexible authorization system action_control

21 views
Skip to first unread message

Tobias Feistmantl

unread,
Jan 1, 2016, 1:01:51 PM1/1/16
to Ruby on Rails: Talk
Hi guys!

I've created a simple Gem called action_control primarily to authorize users separately for every action. it's a pretty simple and small Gem currently.

I would appreciate it, if you take a look on it and help to improve and extend.

Thank you very much!

Happy coding :)

Tobias Feistmantl

Twitter: @T_Feistmantl
StackOverflow: Tobias

Walter Lee Davis

unread,
Jan 1, 2016, 1:14:00 PM1/1/16
to rubyonra...@googlegroups.com

> On Jan 1, 2016, at 1:01 PM, Tobias Feistmantl <tobias.f...@gmail.com> wrote:
>
> Hi guys!

(and gals)

>
> I've created a simple Gem called action_control primarily to authorize users separately for every action. it's a pretty simple and small Gem currently.
>
> I would appreciate it, if you take a look on it and help to improve and extend.

At first glance, this looks really useful. It's got a feeling of "CanCan without so much magic" and I think that it could be a very useful teaching tool, since it lays out what it does in such a declarative manner. Excited to see where this goes! I am a big fan of "more code" versus "less code", because the more code is self-documenting.

Walter

>
> Thank you very much!
>
> Happy coding :)
>
> Tobias Feistmantl
>
> Twitter: @T_Feistmantl
> Github: tobiasfeistmantl
> StackOverflow: Tobias
>
> --
> You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-ta...@googlegroups.com.
> To post to this group, send email to rubyonra...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/6c1fa3f9-f4f7-49fd-bd02-1c25431fa01e%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Tobias Feistmantl

unread,
Jan 2, 2016, 4:49:50 AM1/2/16
to Ruby on Rails: Talk
Hi Walter!

Thanks for your response!

Yes ActionControl is much more lightweight (probably also because I started it as recently as yesterday ;)) than CanCanCan and the other Gems. The main reason I've created this Gem was because I don't like the way CanCanCan stores the authorization code. You have to store everything in Policy classes and somehow have a "connection" between your model and the authorization. With ActionControl the check is always done in the controller in which the authorization is placed.

But of course there are a lot more things to do to make ActionControl great. The first what i can think of would be test helpers, view helpers and to fix the known issues.

I will do my best to improve ActionControl and implement all these cool things and as I already said I would appreciate any help.

Thanks

Tobias
Reply all
Reply to author
Forward
0 new messages