Skip to content

Instantly share code, notes, and snippets.

@wshihadeh
Created April 22, 2020 06:25
Show Gist options
  • Save wshihadeh/026b95330b2613ee0633b23710a4eb53 to your computer and use it in GitHub Desktop.
Save wshihadeh/026b95330b2613ee0633b23710a4eb53 to your computer and use it in GitHub Desktop.
BaseResource
class BaseResource < ActiveResource::Base
def self.headers
RequestHeadersMiddleware.store.merge(ActiveResource::Base.headers)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment