Module: ActiveResource::Extensions::UrlsWithoutJsonExtension::ClassMethods
- Defined in:
- lib/mailroute/extensions/active_resource/urls_without_json_extension.rb
Instance Method Summary collapse
- #collection_path_with_extension(*args) ⇒ Object
- #element_path_with_extension(*args) ⇒ Object
- #new_element_path_with_extension(*args) ⇒ Object
Instance Method Details
#collection_path_with_extension(*args) ⇒ Object
11 12 13 14 |
# File 'lib/mailroute/extensions/active_resource/urls_without_json_extension.rb', line 11 def collection_path_with_extension(*args) collection_path_without_extension(*args).gsub(/.json|.xml/,'/') end |
#element_path_with_extension(*args) ⇒ Object
5 6 7 |
# File 'lib/mailroute/extensions/active_resource/urls_without_json_extension.rb', line 5 def element_path_with_extension(*args) element_path_without_extension(*args).gsub(/.json|.xml/,'/') end |
#new_element_path_with_extension(*args) ⇒ Object
8 9 10 |
# File 'lib/mailroute/extensions/active_resource/urls_without_json_extension.rb', line 8 def new_element_path_with_extension(*args) new_element_path_without_extension(*args).gsub(/.json|.xml/,'/') end |