Module: ActiveResource::Extend::WithoutExtension

Defined in:
lib/ares/remove_format_extension.rb

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



22
23
24
25
26
27
28
29
30
31
32
# File 'lib/ares/remove_format_extension.rb', line 22

def self.included(base)
  base.class_eval do
    extend ClassMethods
    class << self
      alias_method_chain :element_path, :extension
      alias_method_chain :new_element_path, :extension
      alias_method_chain :collection_path, :extension
      alias_method_chain :custom_method_collection_url, :extension
    end
  end
end