module ActiveRecord::Core::ClassMethods
Public instance methods
Returns columns which shouldn’t be exposed while calling #inspect
.
Source code GitHub
# File activerecord/lib/active_record/core.rb, line 326
def filter_attributes
if @filter_attributes.nil?
superclass.filter_attributes
else
@filter_attributes
end
end
Specifies columns which shouldn’t be exposed while calling #inspect
.
Source code GitHub
# File activerecord/lib/active_record/core.rb, line 335
def filter_attributes=(filter_attributes)
@inspection_filter = nil
@filter_attributes = filter_attributes
end