diff options
| author | Zog | 2018-04-24 14:00:17 +0200 | 
|---|---|---|
| committer | Zog | 2018-05-07 15:03:07 +0200 | 
| commit | 42ac1fa61ea79fe612bcd98f2b38bad5b6f24421 (patch) | |
| tree | 71e1023bde0de16489df1df798f962b8b4d85219 /app/models/import/base.rb | |
| parent | 3750a1da0650b692046d7422537a310ba5c5bfd6 (diff) | |
| download | chouette-core-42ac1fa61ea79fe612bcd98f2b38bad5b6f24421.tar.bz2 | |
Rework imports to use Resources and make the a little more verbose
Diffstat (limited to 'app/models/import/base.rb')
| -rw-r--r-- | app/models/import/base.rb | 8 | 
1 files changed, 8 insertions, 0 deletions
| diff --git a/app/models/import/base.rb b/app/models/import/base.rb index f98e359d4..333fb0f56 100644 --- a/app/models/import/base.rb +++ b/app/models/import/base.rb @@ -39,6 +39,14 @@ class Import::Base < ApplicationModel    private +  def failed! +    update status: :failed +  end + +  def aborted! +    update status: :aborted +  end +    def initialize_fields      super      self.token_download ||= SecureRandom.urlsafe_base64 | 
