diff options
| author | Xinhui | 2017-08-31 15:31:11 +0200 |
|---|---|---|
| committer | Xinhui | 2017-08-31 15:31:11 +0200 |
| commit | db91d342ccf229f66f1bed2a2fe11bceccff58be (patch) | |
| tree | 5050134b4bf4df624879c4666bd1342c0bda9eb8 /app/models/line_referential_sync.rb | |
| parent | a8773c5b5c8782656257a9ce5c4f14c14a542bc0 (diff) | |
| download | chouette-core-db91d342ccf229f66f1bed2a2fe11bceccff58be.tar.bz2 | |
Fix message_attributs undefined method
Diffstat (limited to 'app/models/line_referential_sync.rb')
| -rw-r--r-- | app/models/line_referential_sync.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/app/models/line_referential_sync.rb b/app/models/line_referential_sync.rb index 6730ddd73..75c1e48a2 100644 --- a/app/models/line_referential_sync.rb +++ b/app/models/line_referential_sync.rb @@ -40,11 +40,11 @@ class LineReferentialSync < ActiveRecord::Base end end - def create_sync_message criticity, key, message_attributs = {} + def create_sync_message criticity, key, message_attributes = {} params = { criticity: criticity, message_key: key, - message_attributs: message_attributs + message_attributes: message_attributes } line_referential_sync_messages.create params end @@ -54,13 +54,13 @@ class LineReferentialSync < ActiveRecord::Base create_sync_message :info, :pending end - def log_successful message_attributs + def log_successful message_attributes update_attribute(:ended_at, Time.now) - create_sync_message :info, :successful, message_attributs + create_sync_message :info, :successful, message_attributes end - def log_failed message_attributs + def log_failed message_attributes update_attribute(:ended_at, Time.now) - create_sync_message :error, :failed, message_attributs + create_sync_message :error, :failed, message_attributes end end |
