Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

validate TimeEntry.public_company_id required

  • Loading branch information...
commit a0414885bb65b900e7cb07e0ba86415e1522dfe1 1 parent 0ebb078
@taavo taavo authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  app/models/time_entry.rb
View
1  app/models/time_entry.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.