module ActiveRecord::Core::ClassMethods
Public Instance Methods
# File activerecord/lib/active_record/core.rb, line 338
def filter_attributes
if @filter_attributes.nil?
superclass.filter_attributes
else
@filter_attributes
end
end Returns columns which shouldn’t be exposed while calling #inspect.
# File activerecord/lib/active_record/core.rb, line 347 def filter_attributes=(filter_attributes) @inspection_filter = nil @filter_attributes = filter_attributes end
Specifies columns which shouldn’t be exposed while calling #inspect.
© 2004–2021 David Heinemeier Hansson
Licensed under the MIT License.