summaryrefslogtreecommitdiff
path: root/app/models/application_setting.rb
diff options
context:
space:
mode:
authorEric Maziade <eric.maziade@novisoft.com>2015-06-05 11:50:37 -0400
committerEric Maziade <eric.maziade@novisoft.com>2015-06-05 11:50:37 -0400
commit84a414fe534ebb60c8e7396c245486be521e2a11 (patch)
tree35880b0bf1bdd1ba5818bbea464e86c7391f2407 /app/models/application_setting.rb
parent971e57cffa6a89ebcd4da83efc4967f834f8f58b (diff)
downloadgitlab-ce-84a414fe534ebb60c8e7396c245486be521e2a11.tar.gz
Add session expiration delay configuration through UI application
settings
Diffstat (limited to 'app/models/application_setting.rb')
-rw-r--r--app/models/application_setting.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/application_setting.rb b/app/models/application_setting.rb
index 80463ee8841..ce06e022c3d 100644
--- a/app/models/application_setting.rb
+++ b/app/models/application_setting.rb
@@ -15,6 +15,7 @@
# twitter_sharing_enabled :boolean default(TRUE)
# restricted_visibility_levels :text
# max_attachment_size :integer default(10), not null
+# session_expire_seconds :integer default(604800), not null
# default_project_visibility :integer
# default_snippet_visibility :integer
# restricted_signup_domains :text
@@ -61,6 +62,7 @@ class ApplicationSetting < ActiveRecord::Base
sign_in_text: Settings.extra['sign_in_text'],
restricted_visibility_levels: Settings.gitlab['restricted_visibility_levels'],
max_attachment_size: Settings.gitlab['max_attachment_size'],
+ session_expire_seconds: Settings.gitlab['session_expire_seconds'],
default_project_visibility: Settings.gitlab.default_projects_features['visibility_level'],
default_snippet_visibility: Settings.gitlab.default_projects_features['visibility_level'],
restricted_signup_domains: Settings.gitlab['restricted_signup_domains']