Module: Torque::PostgreSQL::Relation::ClassMethods

Defined in:
lib/torque/postgresql/relation.rb

Instance Method Summary collapse

Instance Method Details

#_auto_cast_attributeObject

Easy and storable way to access the name used to get the indicater of auto casting inherited records



120
121
122
123
# File 'lib/torque/postgresql/relation.rb', line 120

def _auto_cast_attribute
  @@auto_cast ||= Torque::PostgreSQL.config
    .inheritance.auto_cast_column_name.to_sym
end

#_record_class_attributeObject

Easy and storable way to access the name used to get the record table name when using inheritance tables



113
114
115
116
# File 'lib/torque/postgresql/relation.rb', line 113

def _record_class_attribute
  @@record_class ||= Torque::PostgreSQL.config
    .inheritance.record_class_column_name.to_sym
end