Class: UserSettings::RouteDrawers::Default
- Inherits:
-
Object
- Object
- UserSettings::RouteDrawers::Default
- Defined in:
- lib/user_settings/route_drawers/default.rb
Class Method Summary collapse
- .match_get_settings ⇒ Object
- .match_remove_settings ⇒ Object
- .match_set_once_settings ⇒ Object
- .match_set_settings ⇒ Object
Class Method Details
.match_get_settings ⇒ Object
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_settings ⇒ Object
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_settings ⇒ Object
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_settings ⇒ Object
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 |