diff options
author | Francis Irving <francis@mysociety.org> | 2010-10-18 18:46:37 +0100 |
---|---|---|
committer | Francis Irving <francis@mysociety.org> | 2010-10-18 18:46:37 +0100 |
commit | d7cc237b82159b0ee72aa1fff71e715e9acf7bc0 (patch) | |
tree | 4a2e685ebf2b96a3caa0705b876475a237ca7e36 /app/models/info_request.rb | |
parent | f3618e48ac616f8b8a5e5f1ea1b0d679ef9cc1c0 (diff) |
Much better way of wording this, thanks Louise
Diffstat (limited to 'app/models/info_request.rb')
-rw-r--r-- | app/models/info_request.rb | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/app/models/info_request.rb b/app/models/info_request.rb index e3336a079..b485bd80e 100644 --- a/app/models/info_request.rb +++ b/app/models/info_request.rb @@ -633,12 +633,7 @@ public # History of some things that have happened def log_event(type, params) - info_request_event = InfoRequestEvent.new - info_request_event.event_type = type - info_request_event.params = params - info_request_event.info_request = self - info_request_event.save! - self.reload # so it knows about the new info_request_event + self.info_request_events.create!(:event_type => type, :params => params) end # The last response is the default one people might want to reply to |