方法
实例公共方法
filter_attributes() 链接
返回调用 inspect 时不应暴露的列。
来源: 显示 | 在 GitHub 上
# File activerecord/lib/active_record/core.rb, line 348 def filter_attributes if @filter_attributes.nil? superclass.filter_attributes else @filter_attributes end end
filter_attributes=(filter_attributes) 链接
指定调用 inspect 时不应暴露的列。
来源: 显示 | 在 GitHub 上
# File activerecord/lib/active_record/core.rb, line 357 def filter_attributes=(filter_attributes) @inspection_filter = nil @filter_attributes = filter_attributes FilterAttributeHandler.sensitive_attribute_was_declared(self, filter_attributes) end