Fix: use model.primary_key instead of :id
Avoid call to current_user in AuthorizationInController#permitted_to* when :user option is passed.
when :user option is passed.
respond_to? returns false for protected methods in ruby 2.0, which is used to test existence of new/load methods in controllers. This changes those calls to respond_to?(..., true) which returns true for protected (or private) methods.
under ruby 1.9.2, .name returns nil for anonymous classes
Adjust Authorization::Usage::Disables.usages_by_controller to behave the same as under 1.8.7 when provided an anonymous class rather than attempting to call .demodularize on nil.
Improved test infrastructure
Tests do not pass under rails 2.3 because of an issue related to respond_to_missing? and delegation. see https://rails.lighthouseapp.com/projects/8994/tickets/5410-multiple-database-queries-when-chaining-named-scopes-with-rails-238-and-ruby-192
* initialize an app inside test_helper for rails 3 * gemfiles/ contains gemfiles for 2.3, 3.0, 3.1, and 3.2 * rake bundles:test runes tests against all gemfiles * rake bundles:install and bundles:update installs/updates
Allow declarative_authorization to be used without ActiveRecord
auto Rule reloading no longer works in development
This allow us to add custom rules in any part of an application, for example a rails engine. Also do not raise an exception if there isn't a auth rule file under rails root config directory.