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



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

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



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

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