Module: Localeapp::Routes::Rename
- Included in:
- Localeapp::Routes
- Defined in:
- lib/localeapp/routes/rename.rb
Instance Method Summary collapse
Instance Method Details
#rename_endpoint(options = {}) ⇒ Object
4 5 6 |
# File 'lib/localeapp/routes/rename.rb', line 4 def rename_endpoint( = {}) [:post, rename_url()] end |
#rename_url(options = {}) ⇒ Object
8 9 10 11 |
# File 'lib/localeapp/routes/rename.rb', line 8 def rename_url( = {}) url = http_scheme.build(.merge(:path => rename_path([:current_name], [:format]))) url.to_s end |