# File lib/authority/abilities.rb, line 50defauthorizer@authorizer||=authorizer_name.constantize# Get an actual reference to the authorizer classrescueNameErrorraiseAuthority::NoAuthorizerError.new(
"#{authorizer_name} is set as the authorizer for #{self}, but the constant is missing"
)
end
authorizer=(authorizer_class)click to toggle source
# File lib/authority/abilities.rb, line 44defauthorizer=(authorizer_class)
@authorizer = authorizer_classself.authorizer_name = @authorizer.nameend