add_more_session_lifetime_options.patch

Lorenzo Meneghetti, 2021-06-02 11:09

Download (569 Bytes)

View differences:

app/helpers/settings_helper.rb
131 131

  
132 132
  def session_lifetime_options
133 133
    options = [[l(:label_disabled), 0]]
134
    options += [15, 30, 45].map {|minutes|
135
      [l('datetime.distance_in_words.x_minutes', :count => minutes), minutes.to_s]
136
    }
134 137
    options += [4, 8, 12].map {|hours|
135 138
      [l('datetime.distance_in_words.x_hours', :count => hours), (hours * 60).to_s]
136 139
    }