提交 232ecd5b 编写于 作者: R Ryan Bates

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

上级 e1652ea4
1.1.1 (April 17, 2010)
* Fixing behavior in Rails 3 by properly initializing ResourceAuthorization
1.1.0 (April 17, 2010)
* Supporting arrays, ranges, and nested hashes in ability conditions
......
Gem::Specification.new do |s|
s.name = "cancan"
s.version = "1.1.0"
s.version = "1.1.1"
s.author = "Ryan Bates"
s.email = "ryan@railscasts.com"
s.homepage = "http://github.com/ryanb/cancan"
......
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册