RE: Change session timeout ยป add_more_session_lifetime_options.patch
| app/helpers/settings_helper.rb | ||
|---|---|---|
|
def session_lifetime_options
|
||
|
options = [[l(:label_disabled), 0]]
|
||
|
options += [15, 30, 45].map {|minutes|
|
||
|
[l('datetime.distance_in_words.x_minutes', :count => minutes), minutes.to_s]
|
||
|
}
|
||
|
options += [4, 8, 12].map {|hours|
|
||
|
[l('datetime.distance_in_words.x_hours', :count => hours), (hours * 60).to_s]
|
||
|
}
|
||