Skip to Content Skip to Search
Methods
F

Instance Public methods

filter_attributes()

Returns columns which shouldn’t be exposed while calling inspect.

# File activerecord/lib/active_record/core.rb, line 348
def filter_attributes
  if @filter_attributes.nil?
    if superclass <= Base
      superclass.filter_attributes
    else
      nil
    end
  else
    @filter_attributes
  end
end

filter_attributes=(filter_attributes)

Specifies columns which shouldn’t be exposed while calling inspect.

# File activerecord/lib/active_record/core.rb, line 361
def filter_attributes=(filter_attributes)
  @inspection_filter = nil
  previous = if @filter_attributes
    self.filter_attributes
  else
    Base.filter_attributes
  end
  changes = @filter_attributes = filter_attributes

  changes -= previous if previous
  FilterAttributeHandler.sensitive_attribute_was_declared(self, changes)
end