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