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, = {} hash_access_method name, .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 = args. names = args hash_access_method *names, .merge(hash: :session) end |