diff options
| author | Zog | 2018-04-11 09:28:35 +0200 |
|---|---|---|
| committer | Zog | 2018-04-11 09:53:08 +0200 |
| commit | e58fa94e822bbf5c24a285eaf1b38737400d8923 (patch) | |
| tree | 7a0f265681f99a6073f3b73e91b9c942c8526085 /app/models/import | |
| parent | f8a8c9055ea934ac89f91897ce66bec21fa24a64 (diff) | |
| download | chouette-core-e58fa94e822bbf5c24a285eaf1b38737400d8923.tar.bz2 | |
Fix specs (WIP)
Diffstat (limited to 'app/models/import')
| -rw-r--r-- | app/models/import/netex.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/models/import/netex.rb b/app/models/import/netex.rb index 83b654f81..93604c5f9 100644 --- a/app/models/import/netex.rb +++ b/app/models/import/netex.rb @@ -10,7 +10,7 @@ class Import::Netex < Import::Base validates_presence_of :parent - def create_referential + def create_referential! self.referential = Referential.new( name: self.name, @@ -27,6 +27,7 @@ class Import::Netex < Import::Base parent.messages.create criticity: :error, message_key: "referential_creation", message_attributes: {referential_name: referential.name} end end + save! end private |
