Module: Mongoid::Sessions::Options::ClassMethods
- Includes:
- Threaded
- Defined in:
- lib/mongoid/sessions/options.rb
Instance Method Summary collapse
- #collection_name ⇒ Object
- #database_name ⇒ Object
- #session_name ⇒ Object
-
#with(options) ⇒ Class
Tell the next persistance operation to store in a specific collection, database or session.
Methods included from Threaded
Instance Method Details
#collection_name ⇒ Object
98 99 100 101 102 103 |
# File 'lib/mongoid/sessions/options.rb', line 98 def collection_name if && v = [:collection] return v.to_sym end super end |
#database_name ⇒ Object
105 106 107 108 109 110 |
# File 'lib/mongoid/sessions/options.rb', line 105 def database_name if && v = [:database] return v.to_sym end super end |
#session_name ⇒ Object
91 92 93 94 95 96 |
# File 'lib/mongoid/sessions/options.rb', line 91 def session_name if && v = [:session] return v.to_sym end super end |