Module: MissionControl::Web::Application::Routes
- Extended by:
- ActiveSupport::Concern
- Included in:
- MissionControl::Web::Application
- Defined in:
- app/models/mission_control/web/application/routes.rb
Instance Method Summary collapse
- #route_disabled?(path) ⇒ Boolean
- #route_was_deleted(route) ⇒ Object
- #route_was_updated(route) ⇒ Object
- #routes ⇒ Object
Instance Method Details
#route_disabled?(path) ⇒ Boolean
16 17 18 |
# File 'app/models/mission_control/web/application/routes.rb', line 16 def route_disabled?(path) routes_cache.disabled?(path) end |
#route_was_deleted(route) ⇒ Object
12 13 14 |
# File 'app/models/mission_control/web/application/routes.rb', line 12 def route_was_deleted(route) routes_cache.remove(route) end |
#route_was_updated(route) ⇒ Object
8 9 10 |
# File 'app/models/mission_control/web/application/routes.rb', line 8 def route_was_updated(route) routes_cache.put(route) end |
#routes ⇒ Object
4 5 6 |
# File 'app/models/mission_control/web/application/routes.rb', line 4 def routes MissionControl::Web::Route.where(application_id: id) end |