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

Included in:
ActiveRecord::Reflection::HasManyReflection
Defined in:
lib/torque/postgresql/reflection/has_many_reflection.rb,
sig/torque/postgresql/reflection/has_many_reflection.rbs

Instance Method Summary collapse

Instance Method Details

#array_attribute ⇒ arel_attribute

Returns:

  • (arel_attribute)


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