Method: Devise::Models::Authenticatable#inspect

Defined in:
lib/devise/models/authenticatable.rb

#inspectObject

Redefine inspect using serializable_hash, to ensure we don’t accidentally leak passwords into exceptions.



120
121
122
123
124
125
# File 'lib/devise/models/authenticatable.rb', line 120

def inspect
  inspection = serializable_hash.collect do |k,v|
    "#{k}: #{respond_to?(:attribute_for_inspect) ? attribute_for_inspect(k) : v.inspect}"
  end
  "#<#{self.class} #{inspection.join(", ")}>"
end