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 228 def filter_attributes if defined?(@filter_attributes) @filter_attributes else superclass.filter_attributes end end
Private Instance Methods
cached_find_by_statement(key, &block)
click to toggle source
# File lib/active_record/core.rb, line 288 def cached_find_by_statement(key, &block) cache = @find_by_statement_cache[connection.prepared_statements] cache.compute_if_absent(key) { StatementCache.create(connection, &block) } end
relation()
click to toggle source
# File lib/active_record/core.rb, line 293 def relation relation = Relation.create(self) if finder_needs_type_condition? && !ignore_default_scope? relation.where!(type_condition) relation.create_with!(inheritance_column.to_s => sti_name) else relation end end
table_metadata()
click to toggle source
# File lib/active_record/core.rb, line 304 def table_metadata TableMetadata.new(self, arel_table) end