Permalink
Browse files

Explicitly tells cancancan is for Ruby 2+ and Rails 3+

Since commit 7cad41d,
cannot install cancancan on rails 2 with ruby 1.8
  • Loading branch information...
1 parent f59ce6d commit c1dfd44c26a620b4bb72fd7e08f11a86763d97dd Timothée Gauthier committed Oct 13, 2016
Showing with 2 additions and 12 deletions.
  1. +1 −0 CHANGELOG.rdoc
  2. +1 −12 README.md
View
@@ -19,6 +19,7 @@ Unreleased
* Significantly improve rule lookup time (amarshall)
* Removed deprecation warnings for RSpec 3.2 (NekoNova)
+* Drop support for REE and Ruby 1.x and so Rails 2 (Richard Wilson)
1.12.0 (June 28th, 2015)
View
@@ -7,7 +7,7 @@
[Wiki](https://github.com/CanCanCommunity/cancancan/wiki) | [RDocs](http://rdoc.info/projects/CanCanCommunity/cancancan) | [Screencast](http://railscasts.com/episodes/192-authorization-with-cancan) | [IRC: #cancancan (freenode)](http://webchat.freenode.net/?channels=cancancan)
-CanCan is an authorization library for Ruby on Rails which restricts what resources a given user is allowed to access. All permissions are defined in a single location (the `Ability` class) and not duplicated across controllers, views, and database queries.
+CanCan is an authorization library for Ruby 2.0+ and Ruby on Rails 3+ which restricts what resources a given user is allowed to access. All permissions are defined in a single location (the `Ability` class) and not duplicated across controllers, views, and database queries.
## This is the master branch!
This branch represents work towards version 2.0. Please checkout the 1.x branch for the stable release. Use master at your own risk.
@@ -44,17 +44,6 @@ 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 following contents:
-
-```ruby
-class Ability
- include CanCan::Ability
-
- def initialize(user)
- end
-end
-```
-
See [Defining Abilities](https://github.com/CanCanCommunity/cancancan/wiki/defining-abilities) for details.

0 comments on commit c1dfd44

Please sign in to comment.