Skip to content

Commit

Permalink
fixes rails/activerecord-session_store rails#172
Browse files Browse the repository at this point in the history
  • Loading branch information
endangurura committed Jun 20, 2023
1 parent 9198a95 commit 9f64aac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/action_dispatch/session/active_record_store.rb
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def get_session_model(request, id)
logger.silence do
model = get_session_with_fallback(id)
unless model
id = generate_sid
id ||= generate_sid # id = generate_sid
model = @@session_class.new(:session_id => id.private_id, :data => {})
model.save
end
Expand Down

0 comments on commit 9f64aac

Please sign in to comment.