Class: KirguduRefs::Globe::SubwayLine

Inherits:
BaseModel
  • Object
show all
Includes:
KirguduBase::Models::BasicProperties::CreatedBy, KirguduBase::Models::BasicProperties::Portal, KirguduBase::Models::BasicProperties::UpdatedBy, ModelBasicProperties::CityID
Defined in:
app/models/kirgudu_refs/globe/subway_line.rb

Class Method Summary collapse

Methods included from ModelBasicProperties::CityID

included

Class Method Details

.apply_filters_to_query(query, filters = {}) ⇒ Object



35
36
37
38
39
40
41
42
# File 'app/models/kirgudu_refs/globe/subway_line.rb', line 35

def self.apply_filters_to_query(query, filters={})
  filters ||={}

  query = query
  .by_city(filters[:city_id])

  super(query, filters)
end