about summary refs log tree commit diff
path: root/app/models/concerns
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2018-08-27 20:20:49 +0200
committerGitHub <noreply@github.com>2018-08-27 20:20:49 +0200
commit8852fff3a43ea4ac26aef5c7f0d72f3db3b421a0 (patch)
tree30dcf8694eadb68ca8a9579e312f9c38ad8c09d1 /app/models/concerns
parentaf934b90710a2ce1099d3ceda5de7bcf0e94595c (diff)
parent53b7bb9d047cfc8b21ee0540bd3e5285267160fd (diff)
Merge pull request #675 from ThibG/glitch-soc/merge-upstream
Merge upstream changes
Diffstat (limited to 'app/models/concerns')
-rw-r--r--app/models/concerns/expireable.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/concerns/expireable.rb b/app/models/concerns/expireable.rb
index 444ccdfdb..2c0631476 100644
--- a/app/models/concerns/expireable.rb
+++ b/app/models/concerns/expireable.rb
@@ -9,7 +9,7 @@ module Expireable
     attr_reader :expires_in
 
     def expires_in=(interval)
-      self.expires_at = interval.to_i.seconds.from_now unless interval.blank?
+      self.expires_at = interval.to_i.seconds.from_now if interval.present?
       @expires_in     = interval
     end