Class: ActionDispatch::Routing::Mapper
- Inherits:
-
Object
- Object
- ActionDispatch::Routing::Mapper
- Defined in:
- lib/hancock/goto/routes.rb
Instance Method Summary collapse
Instance Method Details
#hancock_cms_goto_routes(no_params = true) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/hancock/goto/routes.rb', line 4 def hancock_cms_goto_routes(no_params = true) if no_params.is_a?(Hash) no_params = no_params[:no_params] || true end scope module: 'hancock' do scope module: 'goto' do if no_params get 'goto/*url' => 'transfers#index', as: :hancock_goto, format: false else get 'goto' => 'transfers#index', as: :hancock_goto, format: false end end end end |