Skip to content

Commit

Permalink
Rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
mullermp committed Nov 6, 2024
1 parent 9d33684 commit 7a561ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/action_dispatch/session/dynamo_db_store.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ def delete_session(req, sid, options)
end

def config_file
file = ENV['DYNAMO_DB_SESSION_CONFIG_FILE']
file = Rails.root.join("config/dynamo_db_session_store/#{Rails.env}.yml") unless file
file = ENV.fetch('DYNAMO_DB_SESSION_CONFIG_FILE', nil)
file ||= Rails.root.join("config/dynamo_db_session_store/#{Rails.env}.yml")
file = Rails.root.join('config/dynamo_db_session_store.yml') unless File.exist?(file)
file if File.exist?(file)
end
Expand Down

0 comments on commit 7a561ce

Please sign in to comment.