module ActiveRecord::Core::ClassMethods
Attributes
filter_attributes[W]
Specifies columns which shouldn't be exposed while calling #inspect
.
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 402 def filter_attributes if defined?(@filter_attributes) @filter_attributes else superclass.filter_attributes end end
Private Instance Methods
relation()
click to toggle source
# File lib/active_record/core.rb, line 466 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 476 def table_metadata TableMetadata.new(self, arel_table) end