Module: Arel::Attributes
- Defined in:
- lib/ar_jdbc_pg_array/schema_arel.rb,
lib/ar_jdbc_pg_array/schema_arel.rb
Class Method Summary collapse
Class Method Details
.for_with_postgresql_arrays(column) ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/ar_jdbc_pg_array/schema_arel.rb', line 13 def for_with_postgresql_arrays(column) if column.type.to_s =~ /^(.+)_array$/ ('Arel::Attributes::' + for_without_postgresql_arrays(column.base_column).name.split('::').last + 'Array').constantize else for_without_postgresql_arrays(column) end end |