Sha256: 944e19c220337c39edd50ff47a4462ba49c47c509147cb1b41481c9d9e16f8bf

Contents?: true

Size: 301 Bytes

Versions: 2

Compression:

Stored size: 301 Bytes

Contents

module Arcadex
	module Header

		def self.grab_param_header(params,request,key)
			#Values in the headers have preference
	    if !params[key].blank?
	      value = params[key]
	    end
	    if !request.headers[key].blank?
	      value = request.headers[key]
	    end
	    return value
		end

	end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
arcadex-1.2.1 lib/arcadex/header.rb
arcadex-1.2.0 lib/arcadex/header.rb