Module: ActiveResource::Extend::RemoveExtension::ClassMethods
- Defined in:
- lib/ares/remove_format_extension.rb
Instance Method Summary collapse
- #collection_path_with_extension(*args) ⇒ Object
- #custom_method_collection_url(*args) ⇒ Object
- #element_path_with_extension(*args) ⇒ Object
- #new_element_path_with_extension(*args) ⇒ Object
Instance Method Details
#collection_path_with_extension(*args) ⇒ Object
29 30 31 |
# File 'lib/ares/remove_format_extension.rb', line 29 def collection_path_with_extension(*args) collection_path_without_extension(*args).gsub(/\.json|\.xml/,'') end |
#custom_method_collection_url(*args) ⇒ Object
17 18 19 |
# File 'lib/ares/remove_format_extension.rb', line 17 def custom_method_collection_url(*args) super.gsub(/\.json|\.xml/,'') end |
#element_path_with_extension(*args) ⇒ Object
21 22 23 |
# File 'lib/ares/remove_format_extension.rb', line 21 def element_path_with_extension(*args) element_path_without_extension(*args).gsub(/\.json|\.xml/,'') end |
#new_element_path_with_extension(*args) ⇒ Object
25 26 27 |
# File 'lib/ares/remove_format_extension.rb', line 25 def new_element_path_with_extension(*args) new_element_path_without_extension(*args).gsub(/\.json|\.xml/,'') end |