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(options = {})
  [:delete, remove_url(options)]
end

#remove_url(options = {}) ⇒ Object



8
9
10
11
# File 'lib/localeapp/routes/remove.rb', line 8

def remove_url(options = {})
  url = http_scheme.build(base_options.merge(:path => remove_path(options[:key], options[:format])))
  url.to_s
end