Skip to content
This repository has been archived by the owner on Dec 12, 2021. It is now read-only.

Commit

Permalink
releasing 1.1.1 which fixes behavior in Rails 3 by properly initializ…
Browse files Browse the repository at this point in the history
…ing ResourceAuthorization
  • Loading branch information
ryanb committed Apr 17, 2010
1 parent e1652ea commit 232ecd5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.rdoc
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
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
Expand Down
2 changes: 1 addition & 1 deletion cancan.gemspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
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"
Expand Down
2 changes: 1 addition & 1 deletion lib/cancan/resource_authorization.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ class ResourceAuthorization # :nodoc:

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

Expand Down

2 comments on commit 232ecd5

@iboard
Copy link

@iboard iboard commented on 232ecd5 Apr 18, 2010

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Ryan,

1.1.1 works great in my R3-application but cucumber doesn't start with cancan bundled.
private method `require' called for Bundler:Module (NoMethodError)

@ryanb
Copy link
Owner Author

@ryanb ryanb commented on 232ecd5 Apr 18, 2010

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please open an issue for this and include the full stack trace. Thanks!

Please sign in to comment.