releasing 1.1.1 which fixes behavior in Rails 3 by properly initializing ResourceAuthorization
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user