Module: ActiveResource::Extend::WithoutExtension::ClassMethods
- Defined in:
- lib/ares/remove_format_extension.rb
Instance Method Summary collapse
- #collection_path_with_extension(*args) ⇒ Object
- #custom_method_collection_url_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
13 14 15 |
# File 'lib/ares/remove_format_extension.rb', line 13 def collection_path_with_extension(*args) collection_path_without_extension(*args).gsub(/.json|.xml/,'') end |
#custom_method_collection_url_with_extension(*args) ⇒ Object
17 18 19 |
# File 'lib/ares/remove_format_extension.rb', line 17 def custom_method_collection_url_with_extension(*args) custom_method_collection_url_without_extension(*args).gsub(/.json|.xml/,'') end |
#element_path_with_extension(*args) ⇒ Object
5 6 7 |
# File 'lib/ares/remove_format_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
9 10 11 |
# File 'lib/ares/remove_format_extension.rb', line 9 def new_element_path_with_extension(*args) new_element_path_without_extension(*args).gsub(/.json|.xml/,'') end |