Commit 7d89cae45d7aa16750574d49a0a363a5c92556f2
Exists in
production
Merge branch 'staging' into production
Conflicts: app/models/session.rb
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
app/models/session.rb
1 | class Session < ActiveRecord::SessionStore::Session | 1 | class Session < ActiveRecord::SessionStore::Session |
2 | 2 | ||
3 | def self.find_by_session_id(session_id) | 3 | def self.find_by_session_id(session_id) |
4 | - where(session_id: session_id).all.first | 4 | + connection.clear_query_cache |
5 | + where(session_id: session_id).first | ||
5 | end | 6 | end |
6 | 7 | ||
7 | belongs_to :user | 8 | belongs_to :user |