Skip to content

Commit

Permalink
Merge branch 'hotfix/0.28.0.4'
Browse files Browse the repository at this point in the history
  • Loading branch information
garethrees committed Mar 27, 2017
2 parents 7e2a386 + 0d37683 commit 3b7e3f4
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
6 changes: 4 additions & 2 deletions app/models/mail_server_log.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,13 @@
# Email: [email protected]; WWW: http://www.mysociety.org/

class MailServerLog < ActiveRecord::Base
# `serialize` needs to be called before all other ActiveRecord code.
# See http://stackoverflow.com/a/15610692/387558
serialize :delivery_status, DeliveryStatusSerializer

belongs_to :info_request
belongs_to :mail_server_log_done

serialize :delivery_status, DeliveryStatusSerializer

before_create :calculate_delivery_status

# Load in exim or postfix log file from disk, or update if we already have it
Expand Down
2 changes: 1 addition & 1 deletion config/initializers/alaveteli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
load "util.rb"

# Application version
ALAVETELI_VERSION = '0.28.0.3'
ALAVETELI_VERSION = '0.28.0.4'

# Add new inflection rules using the following format
# (all these examples are active by default):
Expand Down
7 changes: 7 additions & 0 deletions doc/CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# 0.28.0.4

# Highlighted Features

* Fix bug causing `MailServerLog#delivery_status` to return an ActiveRecord
serialized attribute (Gareth Rees)

# 0.28.0.3

# Highlighted Features
Expand Down

0 comments on commit 3b7e3f4

Please sign in to comment.