Skip to content

Commit

Permalink
Removed unneeded code
Browse files Browse the repository at this point in the history
  • Loading branch information
ankane committed Oct 26, 2024
1 parent f9cd578 commit fefa57c
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions lib/lockbox/model.rb
Original file line number Diff line number Diff line change
Expand Up @@ -114,12 +114,6 @@ def inspect
k = lockbox_encrypted_attributes[k]
elsif values.key?(k)
v = respond_to?(:attribute_for_inspect) ? attribute_for_inspect(k) : values[k].inspect

# fix for https://github.com/rails/rails/issues/40725
# TODO only apply to Active Record 6.0
if respond_to?(:inspection_filter, true) && v != "nil"
v = inspection_filter.filter_param(k, v)
end
else
next
end
Expand Down

0 comments on commit fefa57c

Please sign in to comment.