Class: ActionDispatch::Routing::Mapper

Inherits:
Object
  • Object
show all
Defined in:
lib/ants/routing.rb

Instance Method Summary collapse

Instance Method Details

#mount_ants_admin_users_crudObject


7
8
9
10
11
12
13
# File 'lib/ants/routing.rb', line 7

def mount_ants_admin_users_crud
  resources :admin_users, controller: "admin_users" do
    member do
      patch :update_password
    end
  end
end

#mount_ants_menus_crudObject


23
24
25
# File 'lib/ants/routing.rb', line 23

def mount_ants_menus_crud
  resources :menus, controller: "menus"
end

#mount_ants_redirectsObject


3
4
5
# File 'lib/ants/routing.rb', line 3

def mount_ants_redirects
  get "/*id" => 'redirects#show', :constraints => ::Constraints::Redirects
end

#mount_ants_redirects_crudObject


15
16
17
# File 'lib/ants/routing.rb', line 15

def mount_ants_redirects_crud
  resources :redirects, controller: "redirects"
end

#mount_ants_settings_crudObject


19
20
21
# File 'lib/ants/routing.rb', line 19

def mount_ants_settings_crud
  resources :settings_objects, controller: "settings_objects"
end