AerpeAuth

Setting up authlogic and declarative authorization to DRY up your workflow.

Supports Rails 2 and Rails 3

Dependencies

authlogic
declarative_authorization

Restrictions

  • Class names has to be User, Role and UserSession.

  • User and role has to have a many to many relationship.

Installation

Gem

gem install aerpe_auth

And in app/models/user.rb

class User < ActiveRecord::Base
  acts_as_authentic
  symbolize_roles
  # ...
end