Module: Localeapp::Routes::Remove
- Included in:
- Localeapp::Routes
- Defined in:
- lib/localeapp/routes/remove.rb
Instance Method Summary collapse
Instance Method Details
#remove_endpoint(options = {}) ⇒ Object
4 5 6 |
# File 'lib/localeapp/routes/remove.rb', line 4 def remove_endpoint( = {}) [:delete, remove_url()] end |
#remove_url(options = {}) ⇒ Object
8 9 10 11 |
# File 'lib/localeapp/routes/remove.rb', line 8 def remove_url( = {}) url = http_scheme.build(.merge(:path => remove_path([:key], [:format]))) url.to_s end |