diff options
author | Matthew Landauer <matthew@openaustralia.org> | 2013-01-04 16:28:56 +1100 |
---|---|---|
committer | Matthew Landauer <matthew@openaustralia.org> | 2013-01-04 16:28:56 +1100 |
commit | 33a5e8993bbe4e7835299c257e9bceffa5802e5b (patch) | |
tree | b103852b915214e8c32decd0b3790f19166d8f81 | |
parent | 58defe7a49eda51676ffaa34ccf2b267d0e62159 (diff) |
Activerecord 3 small api change for find_or_create_by
-rw-r--r-- | app/models/incoming_message.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/incoming_message.rb b/app/models/incoming_message.rb index ee8b92f11..a3fb973bb 100644 --- a/app/models/incoming_message.rb +++ b/app/models/incoming_message.rb @@ -604,7 +604,7 @@ class IncomingMessage < ActiveRecord::Base content_type = 'application/octet-stream' end hexdigest = Digest::MD5.hexdigest(content) - attachment = self.foi_attachments.find_or_create_by_hexdigest(:hexdigest => hexdigest) + attachment = self.foi_attachments.find_or_create_by_hexdigest(hexdigest) attachment.update_attributes(:filename => filename, :content_type => content_type, :body => content, |