[#4177] Requiring executed isn't letting it be saved as false.

This commit is contained in:
Eric Davis
2010-06-17 15:38:34 -07:00
parent f4a2b39ba2
commit 5960a4359a
2 changed files with 0 additions and 2 deletions
-1
View File
@@ -12,7 +12,6 @@ class Contract < ActiveRecord::Base
validates_presence_of :project
validates_presence_of :start_date
validates_presence_of :end_date
validates_presence_of :executed
validates_inclusion_of :discount_type, :in => %w($ %), :allow_blank => true, :allow_nil => true
validate :start_and_end_date_are_valid
-1
View File
@@ -10,7 +10,6 @@ class ContractTest < ActiveSupport::TestCase
should_validate_presence_of :project
should_validate_presence_of :start_date
should_validate_presence_of :end_date
should_validate_presence_of :executed
should_not_allow_mass_assignment_of :project_id, :project, :discount_type