Skip to content

Commit

Permalink
String doesn't support .hours, and env vars are always strings (#462)
Browse files Browse the repository at this point in the history
  • Loading branch information
tramuntanal authored Jan 30, 2024
1 parent efaec13 commit ae483eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/initializers/decidim.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@

# How long can a user remained logged in before the session expires. Notice that
# this is also maximum time that user can idle before getting automatically signed out.
config.expire_session_after= (ENV["EXPIRE_SESSION_AFTER"].presence || 0.5).hours
config.expire_session_after= (ENV["EXPIRE_SESSION_AFTER"].presence.to_i || 0.5).hours
end

Decidim.menu :menu do |menu|
Expand Down

0 comments on commit ae483eb

Please sign in to comment.