Module: Controll::Helper::Session::ClassMethods

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

Instance Method Summary collapse

Instance Method Details

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



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

def session_method name, options = {}
  hash_access_method name, options.merge(hash: :session)
end

#session_methods(*args) ⇒ Object



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

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