Module: ActiveRecord::Core::ClassMethods
Relationships & Source Files | |
Defined in: | activerecord/lib/active_record/core.rb |
Instance Attribute Summary
-
#filter_attributes
rw
Returns columns which shouldn’t be exposed while calling #inspect.
-
#filter_attributes=(filter_attributes)
rw
Specifies columns which shouldn’t be exposed while calling #inspect.
Instance Attribute Details
#filter_attributes (rw)
Returns columns which shouldn’t be exposed while calling #inspect.
# File 'activerecord/lib/active_record/core.rb', line 417
def filter_attributes if defined?(@filter_attributes) @filter_attributes else superclass.filter_attributes end end
#filter_attributes=(filter_attributes) (rw)
Specifies columns which shouldn’t be exposed while calling #inspect.
# File 'activerecord/lib/active_record/core.rb', line 426
def filter_attributes=(filter_attributes) @inspection_filter = nil @filter_attributes = filter_attributes end