Skip to content

Commit

Permalink
Clarify readme for rails 2.3 users
Browse files Browse the repository at this point in the history
  • Loading branch information
NickClark committed May 10, 2012
1 parent b73bd06 commit 0bbe2e1
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.rdoc
Expand Up @@ -31,6 +31,15 @@ User permissions are defined in an +Ability+ class. CanCan 1.5 includes a Rails

rails g cancan:ability

In Rails 2.3, just add a new class in `app/models/ability.rb` with the folowing contents:

class Ability
include CanCan::Ability

def initialize(user)
end
end

See {Defining Abilities}[https://github.com/ryanb/cancan/wiki/defining-abilities] for details.


Expand Down

0 comments on commit 0bbe2e1

Please sign in to comment.