Module: Concerns::Models::CountryId::ClassMethods
- Defined in:
- app/models/kirgudu_refs/concerns/models/country_id.rb
Instance Method Summary collapse
Instance Method Details
#query_add_country_id(query, filters) ⇒ Object
27 28 29 30 31 32 |
# File 'app/models/kirgudu_refs/concerns/models/country_id.rb', line 27 def query_add_country_id(query, filters) query.join(:country) .by_country_id(filters[:country_id]) .with_country_name(filters[:country_name_w]) .by_country_name(filters[:country_name_b]) end |