diff options
author | Louise Crow <louise.crow@gmail.com> | 2012-09-13 08:44:59 +0100 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2012-09-13 08:44:59 +0100 |
commit | d1b272489fbb2d740d7cc88d4fd43d6bc1b7348a (patch) | |
tree | fb009bc4ca3a14d939d9abcd51654882d78c619b /app/models/info_request.rb | |
parent | 66d4ede0a6951431b34d2414e6b56f65e9aaaf0b (diff) | |
parent | 1ef24aed444d811b3d33b0840067722248f09c4f (diff) |
Merge branch 'feature/faster-public-body-csv' into develop
Diffstat (limited to 'app/models/info_request.rb')
-rw-r--r-- | app/models/info_request.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/info_request.rb b/app/models/info_request.rb index f2d8929bc..ed54da840 100644 --- a/app/models/info_request.rb +++ b/app/models/info_request.rb @@ -35,7 +35,7 @@ class InfoRequest < ActiveRecord::Base belongs_to :user validate :must_be_internal_or_external - belongs_to :public_body + belongs_to :public_body, :counter_cache => true validates_presence_of :public_body_id has_many :outgoing_messages, :order => 'created_at' |