Module: Torque::PostgreSQL::Reflection::HasManyReflection

Defined in:
lib/torque/postgresql/reflection/has_many_reflection.rb

Instance Method Summary collapse

Instance Method Details

#array_attributeObject



11
12
13
# File 'lib/torque/postgresql/reflection/has_many_reflection.rb', line 11

def array_attribute
  klass.arel_table[foreign_key]
end

#connected_through_array?Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/torque/postgresql/reflection/has_many_reflection.rb', line 7

def connected_through_array?
  options[:array]
end