Class: CGI::Session
- Defined in:
- lib/action_controller/session/drb_store.rb,
lib/action_controller/session/active_record_store.rb
Defined Under Namespace
Classes: ActiveRecordStore, DRbStore
Instance Method Summary collapse
-
#method_missing(method, *args, &block) ⇒ Object
Proxy missing methods to the underlying Session model.
-
#model ⇒ Object
Return this session’s underlying Session model.
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args, &block) ⇒ Object
Proxy missing methods to the underlying Session model.
14 15 16 |
# File 'lib/action_controller/session/active_record_store.rb', line 14 def method_missing(method, *args, &block) if model then model.send(method, *args, &block) else super end end |
Instance Method Details
#model ⇒ Object
Return this session’s underlying Session model. Useful for the DB-backed session stores.
9 10 11 |
# File 'lib/action_controller/session/active_record_store.rb', line 9 def model @dbman.model rescue nil end |