Changelog History
Page 5
-
v1.6.5 Changes
May 18, 2011👻 #366: Pass action and subject through AccessDenied exception when :through isn't found.
Many Mongoid adapter improvements (rahearn, cardagin) - issues #363, #352, #343.
#360: Allow :through option to work with private controller methods.
#359: Ensure Mongoid::Document is defined before loading Mongoid adapter.
#355: Many DataMapper adapter improvements ([@emmanuel][]).
#330: Handle checking nil attributes through associations ([@thatothermitch][]).
👌 Improve scope merging - issue #328.
👀 {see the full list of changes}[https://github.com/CanCanCommunity/cancancan/compare/1.6.4...1.6.5].
-
v1.6.4 Changes
March 29, 2011🛠 Fixed mongoid 'or' error - see issue #322.
👀 {see the full list of changes}[https://github.com/CanCanCommunity/cancancan/compare/1.6.3...1.6.4].
-
v1.6.3 Changes
March 25, 2011👀 Make sure ActiveRecord::Relation is defined before checking conditions against it so Rails 2 is supported again - see issue #312.
👀 Return subject passed to authorize! - see issue #314.
👀 {see the full list of changes}[https://github.com/CanCanCommunity/cancancan/compare/1.6.2...1.6.3].
-
v1.6.2 Changes
March 18, 2011🛠 Fixed instance loading when :singleton option is used - see issue #310.
👀 {see the full list of changes}[https://github.com/CanCanCommunity/cancancan/compare/1.6.1...1.6.2].
-
v1.6.1 Changes
March 15, 2011🏗 Use Item.new instead of build_item for singleton resource so it doesn't effect database - see issue #304.
👀 Made accessible_by action default to :index and parent action default to :show instead of :read - see issue #302.
👀 Reverted Inherited Resources "collection" override since it doesn't seem to be working - see issue #305.
👀 {see the full list of changes}[https://github.com/CanCanCommunity/cancancan/compare/1.6.0...1.6.1].
-
v1.6.0 Changes
March 11, 2011➕ Added MetaWhere support - see issue #194 and #261.
👍 Allow Active Record scopes in Ability conditions - see issue #257.
➕ Added :if and :unless options to check_authorization - see issue #284.
🛠 Several Inherited Resources fixes (aq1018, tanordheim and stefanoverna).
Pass action name to accessible_by call when loading a collection ([@amw][]).
Added :prepend option to load_and_authorize_resource to load before other filters - see issue #290.
🛠 Fixed spacing issue in I18n message for multi-word model names - see issue #292.
👀 Load resource collection for any action which doesn't have an "id" parameter - see issue #296.
👀 Raise an exception when trying to make a Ability condition with both a hash of conditions and a block - see issue #269.
👀 {see the full list of changes}[https://github.com/CanCanCommunity/cancancan/compare/1.5.1...1.6.0].
-
v1.5.1 Changes
January 20, 2011🛠 Fixing deeply nested conditions in Active Record adapter - see issue #246.
👀 Improving Mongoid support for multiple can and cannot definitions ([@stellard][]) - see issue #239.
👀 {see the full list of changes}[https://github.com/CanCanCommunity/cancancan/compare/1.5.0...1.5.1].
-
v1.5.0 Changes
January 11, 2011➕ Added an Ability generator - see issue #170.
➕ Added DataMapper support ([@natemueller][]).
➕ Added Mongoid support ([@bowsersenior][]).
Added skip_load_and_authorize_resource methods to controller class - see issue #164.
➕ Added support for uncountable resources in index action - see issue #193.
Cleaned up README and added spec/README.
Internal: renamed CanDefinition to Rule.
👍 Internal: added a model adapter layer for easily supporting more ORMs.
👀 Internal: added .rvmrc to auto-switch to 1.8.7 with gemset - see issue #231.
👀 {see the full list of changes}[https://github.com/CanCanCommunity/cancancan/compare/1.4.1...1.5.0].
-
v1.4.1 Changes
November 12, 2010Renaming skip_authorization to skip_authorization_check - see issue #169.
Adding :through_association option to load_resource ([@hunterae][]) - see issue #171.
👀 The :shallow option now works with the :singleton option ([@nandalopes][]) - see issue #187.
👀 Play nicely with quick_scopes gem ([@ramontayag][]) - see issue #183.
🛠 Fix odd behavior when "cache_classes = false" ([@mphalliday][]) - see issue #174.
👀 {see the full list of changes}[https://github.com/CanCanCommunity/cancancan/compare/1.4.0...1.4.1].
-
v1.4.0 Changes
October 05, 2010➕ Adding Gemfile; to get specs running just +bundle+ and +rake+ - see issue #163.
👀 Stop at 'cannot' definition when there are no conditions - see issue #161.
👀 The :through option will now call a method with that name if instance variable doesn't exist - see issue #146.
➕ Adding :shallow option to load_resource to bring back old behavior of fetching a child without a parent.
Raise AccessDenied error when loading a child and parent resource isn't found.
👀 Abilities defined on a module will apply to anything that includes that module - see issue #150 and #152.
👀 Abilities can be defined with a string of SQL in addition to a block so accessible_by works with a block - see issue #150.
➕ Adding better support for InheritedResource - see issue #23.
👀 Loading the collection instance variable (for index action) using accessible_by - see issue #137.
➕ Adding action and subject variables to I18n unauthorized message - closes #142.
Adding check_authorization and skip_authorization controller class methods to ensure authorization is performed ([@justinko][]) - see issue #135.
👀 Setting initial attributes based on ability conditions in new/create actions - see issue #114.
👀 Check parent attributes for nested association in index action - see issue #121.
👌 Supporting nesting in can? method using hash - see issue #121.
➕ Adding I18n support for Access Denied messages ([@EppO][]) - see issue #103.
👀 Passing no arguments to +can+ definition will pass action, class, and object to block - see issue #129.
👀 Don't pass action to block in +can+ definition when using :+manage+ option - see issue #129.
👀 No longer calling block in +can+ definition when checking on class - see issue #116.
👀 {see the full list of changes}[https://github.com/CanCanCommunity/cancancan/compare/1.3.4...1.4.0].