diff options
Diffstat (limited to 'app/models/info_request.rb')
-rw-r--r-- | app/models/info_request.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/models/info_request.rb b/app/models/info_request.rb index c9bcc9bab..ad210c6fc 100644 --- a/app/models/info_request.rb +++ b/app/models/info_request.rb @@ -1019,7 +1019,7 @@ public def user_can_view?(user) if self.prominence == 'hidden' - return User.view_hidden_requests?(user) + return User.view_hidden?(user) end if self.prominence == 'requester_only' return self.is_owning_user?(user) @@ -1106,10 +1106,10 @@ public begin if self.described_state.nil? self.described_state = 'waiting_response' - end + end rescue ActiveModel::MissingAttributeError # this should only happen on Model.exists?() call. It can be safely ignored. - # See http://www.tatvartha.com/2011/03/activerecordmissingattributeerror-missing-attribute-a-bug-or-a-features/ + # See http://www.tatvartha.com/2011/03/activerecordmissingattributeerror-missing-attribute-a-bug-or-a-features/ end # FOI or EIR? if !self.public_body.nil? && self.public_body.eir_only? |