mirror of
https://github.com/Retrospring/retrospring.git
synced 2024-11-20 14:19:53 +01:00
ing hell
This commit is contained in:
parent
78b34ef6f9
commit
39c79287e2
1 changed files with 4 additions and 1 deletions
|
@ -253,6 +253,9 @@ class User < ActiveRecord::Base
|
|||
end
|
||||
|
||||
def can_export?
|
||||
!self.export_processing || !self.export_created_at.nil? || (Time.now > self.export_created_at.in(1.week))
|
||||
unless self.export_created_at.nil?
|
||||
return (Time.now > self.export_created_at.in(1.week)) && !self.export_processing
|
||||
end
|
||||
!self.export_processing
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue