Module: Arcadex::Header
- Defined in:
- lib/arcadex/header.rb
Class Method Summary collapse
Class Method Details
.grab_param_header(params, request, key) ⇒ Object
4 5 6 7 8 9 10 11 12 13 |
# File 'lib/arcadex/header.rb', line 4 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 |