Refactor routes for better maintainability
- Remove redundant routes (Fixes #1699, Fixes#1570)
- Remove redundant actions
- Remove redundant policy methods
- Fix invalid actions (public methods defined on controllers)
- Set concern methods as private
- Extract session locale method from ApplicationController into its own controller
- Explicitly define actions in statics controller for better readability
dev
1 parent 7c67e70 commit 14d1c2a84628901c161d9612f708af45390459ba
@Bodacious Bodacious authored on 17 Aug 2018
Showing 10 changed files
View
app/controllers/application_controller.rb
View
app/controllers/concerns/paginable.rb
View
app/controllers/concerns/versionable.rb
View
app/controllers/plans_controller.rb
View
app/controllers/session_locales_controller.rb 0 → 100644
View
app/controllers/static_pages_controller.rb
View
app/policies/guidance_policy.rb
View
app/policies/plan_policy.rb
View
config/routes.rb
View
lib/global_helpers.rb