diff options
| author | Zog | 2018-04-11 10:08:33 +0200 |
|---|---|---|
| committer | Zog | 2018-04-11 10:08:33 +0200 |
| commit | 2d1ebb630ecfdd7b745571202ee60a35902b545f (patch) | |
| tree | e51979f1bac6cd9184c91667a3ddf68e6b420798 | |
| parent | 0f8994b5e80a66e123f5a7a26f5073e799716249 (diff) | |
| download | chouette-core-2d1ebb630ecfdd7b745571202ee60a35902b545f.tar.bz2 | |
Fix specs (hopefully)
| -rw-r--r-- | app/models/import/base.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/import/base.rb b/app/models/import/base.rb index 82494b1dc..f98e359d4 100644 --- a/app/models/import/base.rb +++ b/app/models/import/base.rb @@ -41,7 +41,7 @@ class Import::Base < ApplicationModel def initialize_fields super - self.token_download = SecureRandom.urlsafe_base64 + self.token_download ||= SecureRandom.urlsafe_base64 end end |
