lib/evolver.rb
# Get all the sessions configured in the mongoid.yml
#
# @example Get all the sessions.
#   Evolver.sessions
#
# @return [ Array<Moped::Session> ] The sessions.
#
# @since 0.0.0
Get all the sessions configured in the mongoid.yml
Get all the sessions configured in the mongoid . yml
def sessions
    Mongoid.sessions.keys.reduce({}) do |_sessions, name|
      _sessions[name.to_sym] = Mongoid.session(name)
      _sessions
    end
  end
def sessions Mongoid . sessions . keys . reduce ( { } ) do | _sessions , name | _sessions [ name . to_sym ] = Mongoid . session ( name ) _sessions end end
Get all the sessions configured in the mongoid.yml
Get all the sessions configured in the mongoid . yml
None
 Array<Moped::Session> 
example
Get all the sessions. Evolver.sessions
Get all the sessions . Evolver . sessions
since
None