Skip to content

Commit

Permalink
config can contain an empty string. use presence to convert that to n…
Browse files Browse the repository at this point in the history
…il. pass it directly to :path. rails handles the nil case with its default like before.
  • Loading branch information
linki authored and Christian Ratz committed Apr 17, 2014
1 parent afb6292 commit 6adb469
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/initializers/session_store.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

session_store = Rails.env.production? ? :cache_store : :cookie_store

relative_url_root = OpenProject::Configuration['rails_relative_url_root'] || '/'
relative_url_root = OpenProject::Configuration['rails_relative_url_root'].presence

session_options = {
:key => '_open_project_session',
Expand Down

0 comments on commit 6adb469

Please sign in to comment.