Module: Controll::Helper::Params::ClassMethods

Defined in:
lib/controll/helper/params.rb

Instance Method Summary collapse

Instance Method Details

#param_method(name, options = {}) ⇒ Object



14
15
16
# File 'lib/controll/helper/params.rb', line 14

def param_method name, options = {}
  hash_access_method name, options.merge(hash: :params)
end

#param_methods(*args) ⇒ Object



8
9
10
11
12
# File 'lib/controll/helper/params.rb', line 8

def param_methods *args
  options = args.extract_options!
  names = args
  hash_access_method *names, options.merge(hash: :params)
end