All pastes #126429 Raw Edit

Continuing hotness

public ruby v1 · immutable
·published 2006-08-11 13:55 UTC
rendered paste body
class Governor < ActiveRecord::Base	# don't hate, validate	validates_presence_of :state_id	validates_presence_of :prefix	validates_presence_of :first_name	validates_presence_of :last_name	validates_numericality_of :year_elected, :only_integer => true	validates_numericality_of :year_up_for_re_election, :only_integer => true	validates_length_of :prefix, :maximum => 25	validates_length_of :first_name, :maximum => 50	validates_length_of :middle_name, :maximum => 50	validates_length_of :last_name, :maximum => 50	validates_length_of :year_elected, :is => 4	validates_length_of :year_elected, :maximum => 6500	# who's my daddy?	belongs_to :state	end