Module: ActiveResource::Extend::AuthWithApiKey
- Defined in:
- lib/ares/add_api_key.rb
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
35 36 37 38 39 40 41 42 43 44 45 46 |
# File 'lib/ares/add_api_key.rb', line 35 def self.included(base) base.class_eval do extend ClassMethods class << self alias_method_chain :element_path, :auth alias_method_chain :new_element_path, :auth alias_method_chain :collection_path, :auth alias_method_chain :custom_method_collection_url, :auth #attr_accessor :api_key end end end |