module ActiveRecord::Core::ClassMethods
Public Instance Methods
filter_attributes()
click to toggle source
Returns columns which shouldn't be exposed while calling #inspect
.
# File 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)
click to toggle source
Specifies columns which shouldn't be exposed while calling #inspect
.
# File lib/active_record/core.rb, line 426 def filter_attributes=(filter_attributes) @inspection_filter = nil @filter_attributes = filter_attributes end
Private Instance Methods
relation()
click to toggle source
# File lib/active_record/core.rb, line 495 def relation relation = Relation.create(self) if finder_needs_type_condition? && !ignore_default_scope? relation.where!(type_condition) else relation end end
table_metadata()
click to toggle source
# File lib/active_record/core.rb, line 505 def table_metadata TableMetadata.new(self, arel_table) end