class Granite::Action::NotAllowedError
Public Class Methods
new(action)
click to toggle source
Calls superclass method
Granite::Action::Error::new
# File lib/granite/action/policies.rb, line 9 def initialize(action) performer_id = "##{action.performer.id}" if action.performer.respond_to?(:id) && action.performer.id.present? super("#{action.class} action is not allowed " \ "for #{action.performer.class}#{performer_id}", action) end