Permalink
Browse files

releasing gem v1.0.1

  • Loading branch information...
1 parent 021f33c commit f919ac53bbd4dbbe5640c0f0a9e8dd35ab299169 @ryanb committed Dec 14, 2009
Showing with 5 additions and 7 deletions.
  1. +2 −0 CHANGELOG.rdoc
  2. +1 −5 README.rdoc
  3. +2 −2 cancan.gemspec
View
@@ -1,3 +1,5 @@
+1.0.1 (Dec 14, 2009)
+
* Adding :class option to load_resource so one can customize which class to use for the model - see issue #17
* Don't fetch parent of nested resource if *_id parameter is missing so it works with shallow nested routes - see issue #14
View
@@ -65,11 +65,7 @@ Setting this for every action can be tedious, therefore the load_and_authorize_r
If the user authorization fails, a CanCan::AccessDenied exception will be raised. You can catch this and modify its behavior in the ApplicationController.
class ApplicationController < ActionController::Base
- rescue_from CanCan::AccessDenied, :with => :access_denied
-
- protected
-
- def access_denied
+ rescue_from CanCan::AccessDenied do |exception|
flash[:error] = "Sorry, you are not allowed to access that page."
redirect_to root_url
end
View
@@ -4,8 +4,8 @@ Gem::Specification.new do |s|
s.description = "Simple authorization solution for Rails which is completely decoupled from the user's roles. All permissions are stored in a single location for convenience."
s.homepage = "http://github.com/ryanb/cancan"
- s.version = "1.0.0"
- s.date = "2009-12-13"
+ s.version = "1.0.1"
+ s.date = "2009-12-14"
s.authors = ["Ryan Bates"]
s.email = "ryan@railscasts.com"

0 comments on commit f919ac5

Please sign in to comment.