lib/authority/abilities.rb in authority-2.2.0 vs lib/authority/abilities.rb in authority-2.3.0

- old
+ new

@@ -33,10 +33,12 @@ # @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") + raise Authority::NoAuthorizerError.new( + "#{authorizer_name} is set as the authorizer for #{self}, but the constant is missing" + ) end end Authority.adjectives.each do |adjective|