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



111
112
113
114
# File 'lib/torque/postgresql/relation.rb', line 111

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



104
105
106
107
# File 'lib/torque/postgresql/relation.rb', line 104

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