=begin rdoc
	iCookWare Setting model class: represents user settings stored in the database
	Author:: Ana Kovatcheva. 2005
	© Copyright:: iCookWare Team 2005  
=end

class Setting < ActiveRecord::Base
	belongs_to :user
	validates_presence_of :kocherfahrung, :vegetarier, :instrumente
	validates_format_of :instrumente, :allergy, :with => /^[a-zA-ZäöüÄÜÖß]+(\s*,\s+[a-zA-Z]+)*\s*$/ , :message => "Format wrong! Piss off!"
end
