diff --git a/CHANGELOG.rdoc b/CHANGELOG.rdoc index 370faf1..5e9e7ae 100644 --- a/CHANGELOG.rdoc +++ b/CHANGELOG.rdoc @@ -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 diff --git a/README.rdoc b/README.rdoc index 58c61e3..047dfca 100644 --- a/README.rdoc +++ b/README.rdoc @@ -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 diff --git a/cancan.gemspec b/cancan.gemspec index b6c7f3c..f5acd7d 100644 --- a/cancan.gemspec +++ b/cancan.gemspec @@ -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"