class QuickVote < Election
after_validation :create_candidates
validates_uniqueness_of :name
+ validates_presence_of :name
attr_accessor :raw_candidates
attr_accessor :reviewed
attr_accessor :plurality_result
end
def name
- read_attribute( :name ).downcase()
+ read_attribute( :name ).downcase() if read_attribute( :name )
end
def reviewed?