From 022f7a0d72a7742875d9ba94ce33a4ec069d36dd Mon Sep 17 00:00:00 2001 From: francis Date: Mon, 10 Sep 2007 01:16:34 +0000 Subject: Ask for and save the public body which the request is for. --- app/models/info_request.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'app/models/info_request.rb') diff --git a/app/models/info_request.rb b/app/models/info_request.rb index f79bf1dca..21f9e47cb 100644 --- a/app/models/info_request.rb +++ b/app/models/info_request.rb @@ -4,13 +4,16 @@ # 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.2 2007-08-21 11:33:45 francis Exp $ +# $Id: info_request.rb,v 1.3 2007-09-10 01:16:35 francis Exp $ class InfoRequest < ActiveRecord::Base belongs_to :user + belongs_to :public_body # validates_presence_of :user # validates_numericality_of :user validates_presence_of :title + validates_presence_of :public_body_id + end -- cgit v1.2.3