diff options
author | Pratik Naik <pratiknaik@gmail.com> | 2008-06-11 12:39:56 +0100 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2008-06-11 12:39:56 +0100 |
commit | 71bf756ea21f338771b53d02951d6654bd295649 (patch) | |
tree | ffb56f79a6c3230028e2ecc3fcd221f42ca670f0 /activerecord/test | |
parent | 7f140bbddaf70abc61570f6cfdcbfba5771ffc78 (diff) | |
download | rails-71bf756ea21f338771b53d02951d6654bd295649.tar.gz rails-71bf756ea21f338771b53d02951d6654bd295649.tar.bz2 rails-71bf756ea21f338771b53d02951d6654bd295649.zip |
Disable validations for associated belongs_to record by default
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/models/developer.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/models/developer.rb b/activerecord/test/models/developer.rb index 7a64bed5ff..9f26cacdec 100644 --- a/activerecord/test/models/developer.rb +++ b/activerecord/test/models/developer.rb @@ -56,8 +56,8 @@ class Developer < ActiveRecord::Base end class AuditLog < ActiveRecord::Base - belongs_to :developer - belongs_to :unvalidated_developer, :class_name => 'Developer', :validate => false + belongs_to :developer, :validate => true + belongs_to :unvalidated_developer, :class_name => 'Developer' end DeveloperSalary = Struct.new(:amount) |