releasing 1.1.1 which fixes behavior in Rails 3 by properly initializing ResourceAuthorization

This commit is contained in:
Ryan Bates
2010-04-17 14:01:20 -07:00
parent e1652ea424
commit 232ecd5b4b
3 changed files with 7 additions and 2 deletions

View File

@@ -4,7 +4,7 @@ module CanCan
def self.add_before_filter(controller_class, method, options = {})
controller_class.before_filter(options.slice(:only, :except)) do |controller|
new(controller, controller.params, options.except(:only, :except)).send(method)
ResourceAuthorization.new(controller, controller.params, options.except(:only, :except)).send(method)
end
end