Sha256: 30953bf17ee58357890f53f0e205eeca632757f40543ca3d2c42564d098e6b3f

Contents?: true

Size: 228 Bytes

Versions: 6

Compression:

Stored size: 228 Bytes

Contents

module BaseCrm

  module Resource

    def pass_headers(klass)
      token_name = BaseCrm.config.token_name
      token = self.original_scope.headers[token_name]
      klass.headers({ token_name => token })
    end

  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
basecrm-0.1.2 lib/base_crm/resource.rb
basecrm-0.1.1 lib/base_crm/resource.rb
basecrm-0.1.0 lib/base_crm/resource.rb
basecrm-0.0.3 lib/base_crm/resource.rb
basecrm-0.0.2 lib/base_crm/resource.rb
basecrm-0.0.1 lib/base_crm/resource.rb