From 5960a4359af44e927dbc59ea98763d862f38b6d1 Mon Sep 17 00:00:00 2001 From: Eric Davis Date: Thu, 17 Jun 2010 15:38:34 -0700 Subject: [PATCH] [#4177] Requiring executed isn't letting it be saved as false. --- app/models/contract.rb | 1 - test/unit/contract_test.rb | 1 - 2 files changed, 2 deletions(-) diff --git a/app/models/contract.rb b/app/models/contract.rb index 39c7178..b9cb8b9 100644 --- a/app/models/contract.rb +++ b/app/models/contract.rb @@ -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 diff --git a/test/unit/contract_test.rb b/test/unit/contract_test.rb index aa3e7b9..fc36b0a 100644 --- a/test/unit/contract_test.rb +++ b/test/unit/contract_test.rb @@ -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