]> source.dussan.org Git - redmine.git/commitdiff
remove spaces inside {} of app/models/token.rb
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 13 Nov 2020 12:40:41 +0000 (12:40 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 13 Nov 2020 12:40:41 +0000 (12:40 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@20360 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/token.rb

index e34d6b65e862063575f974e90f90fefb901b7a63..1de251e4012f72fe8c1e641ac4973833c4a6131c 100644 (file)
@@ -37,10 +37,10 @@ class Token < ActiveRecord::Base
   end
 
   add_action :api,       max_instances: 1,  validity_time: nil
-  add_action :autologin, max_instances: 10, validity_time: Proc.new { Setting.autologin.to_i.days }
+  add_action :autologin, max_instances: 10, validity_time: Proc.new {Setting.autologin.to_i.days}
   add_action :feeds,     max_instances: 1,  validity_time: nil
-  add_action :recovery,  max_instances: 1,  validity_time: Proc.new { Token.validity_time }
-  add_action :register,  max_instances: 1,  validity_time: Proc.new { Token.validity_time }
+  add_action :recovery,  max_instances: 1,  validity_time: Proc.new {Token.validity_time}
+  add_action :register,  max_instances: 1,  validity_time: Proc.new {Token.validity_time}
   add_action :session,   max_instances: 10, validity_time: nil
   add_action :twofa_backup_code, max_instances: 10, validity_time: nil