lib/authority/abilities.rb in authority-3.1.0 vs lib/authority/abilities.rb in authority-3.2.0

- old
+ new

@@ -16,11 +16,11 @@ # Set the default authorizer for this model. # - Look for an authorizer named like the model inside the model's namespace. # - If there is none, use 'ApplicationAuthorizer' self.authorizer_name = begin "#{base.name}Authorizer".constantize.name - rescue NameError => e + rescue NameError "ApplicationAuthorizer" end end @@ -56,6 +56,8 @@ end end end -end \ No newline at end of file + + NoAuthorizerError = Class.new(RuntimeError) +end