lib/authority/abilities.rb in authority-2.0.0 vs lib/authority/abilities.rb in authority-2.0.1

- old
+ new

@@ -25,9 +25,10 @@ authorizer.#{adjective}_by?(user) end RUBY end + # @return [Class] of the designated authorizer def authorizer @authorizer ||= authorizer_name.constantize # Get an actual reference to the authorizer class rescue NameError raise Authority::NoAuthorizerError.new("#{authorizer_name} does not exist in your application") end