RESTful_ACL has been updated for the first time in nearly three months!
Global Admin Access
Due to popular demand (well, alright, I needed it on a project), site administrators get full global access to all RESTful_ACL resources. The trick? Make sure that your User model defines an "is_admin?" method or "is_admin" attribute. Before RESTful_ACL does a thing it will now check for this method/attribute to see if the @current_user is an Admin. If so, viola!, you're in. It's like that scene in Goodfellas where Henry and Karen get into the nightclub via the kitchen. Bobby Vinton and all.
New View Helpers
I've added four new view helpers that are less verbose than the old style:
Old Style:
if Job.is_creatable_by(@current_user)
...
end
Super New And Improved Deluxe Style:
if creatable
...
end
The new style automatically assumes that you're talking about the @current_user's permissions on the current resource, so you don't have to specify it over and over and over and over. These new helpers also take "is_admin?" into account as noted above.
The old style will still work so no update worries.
Grab it now on Github!













