From 78b34ef6f9800e548482d33c17229d9e318f54be Mon Sep 17 00:00:00 2001 From: Georg G Date: Tue, 5 Jan 2016 21:48:30 +0100 Subject: [PATCH] c and k --- app/models/user.rb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/app/models/user.rb b/app/models/user.rb index 88ccb520..24cde688 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -253,10 +253,6 @@ class User < ActiveRecord::Base end def can_export? - if self.export_processing? - false - else - !self.export_created_at.nil? && Time.now > self.export_created_at.in(1.week) - end + !self.export_processing || !self.export_created_at.nil? || (Time.now > self.export_created_at.in(1.week)) end end