Class: Diesel::Middleware::SetQueryParameter

Inherits:
SetParameterBase show all
Defined in:
lib/diesel/middleware/set_query_parameter.rb

Instance Method Summary collapse

Methods inherited from SetParameterBase

#call, #initialize

Constructor Details

This class inherits a constructor from Diesel::Middleware::SetParameterBase

Instance Method Details

#apply_parameter_value(env, value) ⇒ Object



6
7
8
9
10
# File 'lib/diesel/middleware/set_query_parameter.rb', line 6

def apply_parameter_value(env, value)
  unless value.nil?
    env[:params][@name] = value
  end
end