blob: c354fb3afabf03f348569e7fab9e9d7b68b28b50 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
# models/info_request.rb:
# A Freedom of Information request.
#
# 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.4 2007-09-10 18:58:43 francis Exp $
class InfoRequest < ActiveRecord::Base
belongs_to :user
belongs_to :public_body
has_many :outgoing_message
# validates_presence_of :user
# validates_numericality_of :user
validates_presence_of :title
validates_presence_of :public_body_id
end
|