Method: CanCan::AccessDenied#inspect
- Defined in:
- lib/cancan/exceptions.rb
#inspect ⇒ Object
62 63 64 65 66 67 68 |
# File 'lib/cancan/exceptions.rb', line 62 def inspect details = %i[action subject conditions message].map do |attribute| value = instance_variable_get "@#{attribute}" "#{attribute}: #{value.inspect}" if value.present? end.compact.join(', ') "#<#{self.class.name} #{details}>" end |