From 709d4d01ae6adfae49c0d7376faec112a8d7d0ee Mon Sep 17 00:00:00 2001 From: francis Date: Mon, 17 Sep 2007 10:13:24 +0000 Subject: Try to use implicit saving of dependent models, rather than explicit. Still has some problems in error display :( --- app/models/info_request.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/models/info_request.rb') diff --git a/app/models/info_request.rb b/app/models/info_request.rb index 101773a30..248f9423e 100644 --- a/app/models/info_request.rb +++ b/app/models/info_request.rb @@ -4,7 +4,7 @@ # Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved. # Email: francis@mysociety.org; WWW: http://www.mysociety.org/ # -# $Id: info_request.rb,v 1.5 2007-09-11 15:23:59 francis Exp $ +# $Id: info_request.rb,v 1.6 2007-09-17 10:13:24 francis Exp $ class InfoRequest < ActiveRecord::Base validates_presence_of :title @@ -15,6 +15,6 @@ class InfoRequest < ActiveRecord::Base belongs_to :public_body validates_presence_of :public_body_id - has_many :outgoing_message + has_many :outgoing_messages end -- cgit v1.2.3