Module: Kasket::RelationMixin

Defined in:
lib/kasket/relation_mixin.rb

Instance Method Summary collapse

Instance Method Details

#to_kasket_query(binds = []) ⇒ Object



3
4
5
6
7
# File 'lib/kasket/relation_mixin.rb', line 3

def to_kasket_query(binds = [])
  if arel.is_a?(Arel::SelectManager)
    arel.to_kasket_query(klass, binds)
  end
end