Module: ActiveResource::CaptureHeaders

Defined in:
lib/activeresource-ext.rb

Defined Under Namespace

Modules: InstanceMethods

Class Method Summary collapse

Class Method Details

.included(receiver) ⇒ Object



16
17
18
19
20
21
22
# File 'lib/activeresource-ext.rb', line 16

def self.included(receiver)
  receiver.class_eval do
    include InstanceMethods
    alias_method_chain :request, :headers
    attr :headers
  end
end