Skip to content

Commit 4f692ca

Browse files
committed
Drop obsolete Devise::Models::Authenticatable#inspect method
1 parent 731074b commit 4f692ca

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

lib/devise/models/authenticatable.rb

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -115,15 +115,6 @@ def serializable_hash(options = nil)
115115
super(options)
116116
end
117117

118-
# Redefine inspect using serializable_hash, to ensure we don't accidentally
119-
# leak passwords into exceptions.
120-
def inspect
121-
inspection = serializable_hash.collect do |k,v|
122-
"#{k}: #{respond_to?(:attribute_for_inspect) ? attribute_for_inspect(k) : v.inspect}"
123-
end
124-
"#<#{self.class} #{inspection.join(", ")}>"
125-
end
126-
127118
protected
128119

129120
def devise_mailer

0 commit comments

Comments
 (0)