Permalink
Browse files

validate TimeEntry.public_company_id required

  • Loading branch information...
1 parent 0ebb078 commit a0414885bb65b900e7cb07e0ba86415e1522dfe1 @taavo taavo committed Jan 6, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 app/models/time_entry.rb
View
@@ -7,6 +7,7 @@ class TimeEntry < ActiveRecord::Base
validates :date, :presence => true
validates :company_id, :presence => true
+ validates :public_company_id, :presence => true
validates :hours, :presence => true, :numericality => {:greater_than_or_equal_to => 0.25}
validates :description, :presence => true

0 comments on commit a041488

Please sign in to comment.