From 0bbe2e18028cc9b43dddc672abe612097add5e7f Mon Sep 17 00:00:00 2001 From: Nicholas Clark Date: Thu, 10 May 2012 19:03:51 -0400 Subject: [PATCH] Clarify readme for rails 2.3 users --- README.rdoc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.rdoc b/README.rdoc index e5820d4..5074b82 100644 --- a/README.rdoc +++ b/README.rdoc @@ -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.