Skip to content

Instantly share code, notes, and snippets.

@emkman
Created November 26, 2012 13:10
Show Gist options
  • Save emkman/4148114 to your computer and use it in GitHub Desktop.
Save emkman/4148114 to your computer and use it in GitHub Desktop.
control logic anomaly
# /Users/emkman/.rvm/gems/ruby-1.9.3-p286@cc/gems/mongoid-3.0.14/lib/mongoid/sessions.rb
# line 372
def __session__
if name = session_override #name = nil
Sessions.with_name(name) #goes here
elsif storage_options && name = storage_options[:session]
Sessions.with_name(name)
else
Sessions.default #should go here
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment