返回调用#inspect时不应公开的列。
#inspect
来源:显示 | 在GitHub上
# File activerecord/lib/active_record/core.rb, line 338 def filter_attributes if @filter_attributes.nil? superclass.filter_attributes else @filter_attributes end end
指定调用#inspect时不应公开的列。
# File activerecord/lib/active_record/core.rb, line 347 def filter_attributes=(filter_attributes) @inspection_filter = nil @filter_attributes = filter_attributes end