Module: ModelExt::Restaurants::Relations
- Extended by:
- ActiveSupport::Concern
- Included in:
- Restaurant
- Defined in:
- lib/model_ext/restaurants/relations.rb
Overview
Responsible for managing relations of Restaurant model
Instance Method Summary collapse
-
#award_badge_tags ⇒ ActiveRecord::Relation
Returns the award badge tags for the restaurant.
-
#award_type_tags ⇒ ActiveRecord::Relation
Returns the award type tags for the restaurant.
-
#bts_route_tags ⇒ ActiveRecord::Relation
Returns the BTS route tags for the restaurant.
-
#cuisine_tags ⇒ ActiveRecord::Relation
Returns the cuisine tags for the restaurant.
-
#dining_style_tags ⇒ ActiveRecord::Relation
Returns the dining style tags for the restaurant.
-
#facility_tags ⇒ ActiveRecord::Relation
Returns the facility tags for the restaurant.
- #fetch_restaurant_tags ⇒ Object
-
#hashtag_tags ⇒ ActiveRecord::Relation
Returns the hashtag tags for the restaurant.
-
#location_tags ⇒ ActiveRecord::Relation
Returns the location tags for the restaurant.
-
#mrt_route_tags ⇒ ActiveRecord::Relation
Returns the MRT route tags for the restaurant.
-
#popular_zone_tags ⇒ ActiveRecord::Relation
Returns the popular zone tags for the restaurant.
-
#shopping_mall_tags ⇒ ActiveRecord::Relation
Returns the shopping mall tags for the restaurant.
Instance Method Details
#award_badge_tags ⇒ ActiveRecord::Relation
Returns the award badge tags for the restaurant.
327 328 329 |
# File 'lib/model_ext/restaurants/relations.rb', line 327 def (RestaurantTag::AWARD_BADGE) end |
#award_type_tags ⇒ ActiveRecord::Relation
Returns the award type tags for the restaurant.
334 335 336 |
# File 'lib/model_ext/restaurants/relations.rb', line 334 def (RestaurantTag::AWARD_TYPE) end |
#bts_route_tags ⇒ ActiveRecord::Relation
Returns the BTS route tags for the restaurant.
306 307 308 |
# File 'lib/model_ext/restaurants/relations.rb', line 306 def (RestaurantTag::BTS_ROUTE) end |
#cuisine_tags ⇒ ActiveRecord::Relation
Returns the cuisine tags for the restaurant.
271 272 273 |
# File 'lib/model_ext/restaurants/relations.rb', line 271 def (RestaurantTag::CUISINE) end |
#dining_style_tags ⇒ ActiveRecord::Relation
Returns the dining style tags for the restaurant.
285 286 287 |
# File 'lib/model_ext/restaurants/relations.rb', line 285 def (RestaurantTag::DINING_STYLE) end |
#facility_tags ⇒ ActiveRecord::Relation
Returns the facility tags for the restaurant.
320 321 322 |
# File 'lib/model_ext/restaurants/relations.rb', line 320 def (RestaurantTag::FACILITY) end |
#fetch_restaurant_tags ⇒ Object
255 256 257 258 259 |
# File 'lib/model_ext/restaurants/relations.rb', line 255 def ::Rails.cache.fetch "#{cache_key}/restaurant_tags" do end end |
#hashtag_tags ⇒ ActiveRecord::Relation
Returns the hashtag tags for the restaurant.
264 265 266 |
# File 'lib/model_ext/restaurants/relations.rb', line 264 def (RestaurantTag::HASHTAGS) end |
#location_tags ⇒ ActiveRecord::Relation
Returns the location tags for the restaurant.
278 279 280 |
# File 'lib/model_ext/restaurants/relations.rb', line 278 def (RestaurantTag::LOCATION) end |
#mrt_route_tags ⇒ ActiveRecord::Relation
Returns the MRT route tags for the restaurant.
313 314 315 |
# File 'lib/model_ext/restaurants/relations.rb', line 313 def (RestaurantTag::MRT_ROUTE) end |
#popular_zone_tags ⇒ ActiveRecord::Relation
Returns the popular zone tags for the restaurant.
292 293 294 |
# File 'lib/model_ext/restaurants/relations.rb', line 292 def (RestaurantTag::POPULAR_ZONE) end |
#shopping_mall_tags ⇒ ActiveRecord::Relation
Returns the shopping mall tags for the restaurant.
299 300 301 |
# File 'lib/model_ext/restaurants/relations.rb', line 299 def (RestaurantTag::SHOPPING_MALL) end |