base_ext.rb 292 B

1234567891011121314
  1. module ActiveResource
  2. class Base
  3. # Backported from ActiveResource master branch
  4. def self.headers
  5. @headers ||= {}
  6. if superclass != Object && superclass.headers
  7. @headers = superclass.headers.merge(@headers)
  8. else
  9. @headers
  10. end
  11. end
  12. end
  13. end