Module: Rack::TradeTracker::Parameters::Paired
- Defined in:
- lib/rack/trade_tracker/parameters/paired.rb
Constant Summary collapse
- REDIRECT_PARAM =
'redirectURL'.freeze
Class Method Summary collapse
Class Method Details
.extended(base) ⇒ Object
10 11 12 13 14 15 16 17 18 |
# File 'lib/rack/trade_tracker/parameters/paired.rb', line 10 def self.extended(base) params = base.send(:params) (PERMITTED_PARAMS.dup << REDIRECT_PARAM).each do |param| define_method param.underscore do params[param] || MISSING_PARAM_VALUE end end end |