Method: Sequel::Plugins::PgEagerAnyTypedArray::ClassMethods#associate
- Defined in:
- lib/sequel/plugins/pg_eager_any_typed_array.rb
#associate(type, name, opts = OPTS, &block) ⇒ Object
Set the :eager_loading_predicate_transform option if not already set
83 84 85 86 87 88 89 90 91 |
# File 'lib/sequel/plugins/pg_eager_any_typed_array.rb', line 83 def associate(type, name, opts = OPTS, &block) res = super unless res.has_key?(:eager_loading_predicate_transform) res[:eager_loading_predicate_transform] = TRANSFORM end res end |