Class: UserSettings::RouteDrawers::Default

Inherits:
Object
  • Object
show all
Defined in:
lib/user_settings/route_drawers/default.rb

Class Method Summary collapse

Class Method Details

.match_get_settingsObject



5
6
7
8
9
10
11
# File 'lib/user_settings/route_drawers/default.rb', line 5

def self.match_get_settings
  {
    "/#{UserSettings.base_path}:key" => 'user_settings#show',
    :as => :get_user_settings,
    :format => :json
  }
end

.match_remove_settingsObject



29
30
31
32
33
34
35
# File 'lib/user_settings/route_drawers/default.rb', line 29

def self.match_remove_settings
  {
    "/#{UserSettings.base_path}:key" => 'user_settings#destroy',
    :as => :remove_user_settings,
    :format => :json
  }
end

.match_set_once_settingsObject



13
14
15
16
17
18
19
# File 'lib/user_settings/route_drawers/default.rb', line 13

def self.match_set_once_settings
  {
    "/#{UserSettings.base_path}:key" => 'user_settings#create_once',
    :as => :set_once_user_settings,
    :format => :json
  }
end

.match_set_settingsObject



21
22
23
24
25
26
27
# File 'lib/user_settings/route_drawers/default.rb', line 21

def self.match_set_settings
  {
    "/#{UserSettings.base_path}:key" => 'user_settings#create',
    :as => :set_user_settings,
    :format => :json
  }
end