Module: RequireParams::ClassMethods
- Defined in:
- lib/require_params.rb
Instance Method Summary collapse
Instance Method Details
#require_params(required_params, options = {}) ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/require_params.rb', line 9 def require_params(required_params, = {}) prepend_before_action do required_params.each do |x| missing_params << x unless params.has_key?(x) end end end |