Module: ActiveRecord::Relation::QueryMethodsExt
- Defined in:
- lib/active_record/relation/query_methods_ext.rb
Instance Method Summary collapse
Instance Method Details
#st_contains ⇒ Object
10 11 12 |
# File 'lib/active_record/relation/query_methods_ext.rb', line 10 def st_contains(...) spawn.st_contains!(...) end |
#st_contains!(column, inner_geom) ⇒ Object
6 7 8 |
# File 'lib/active_record/relation/query_methods_ext.rb', line 6 def st_contains!(column, inner_geom) where!(self.arel_table[:column].st_contains(inner_geom)) end |