From e1bb9fc671a8d33fb70f94f094bc5644e9c81a18 Mon Sep 17 00:00:00 2001 From: Arthur Neves Date: Wed, 25 Sep 2013 19:50:42 -0400 Subject: on tests: dont always touch firm on validate --- activerecord/test/models/company.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'activerecord/test/models') diff --git a/activerecord/test/models/company.rb b/activerecord/test/models/company.rb index b6b2823978..c9168981fc 100644 --- a/activerecord/test/models/company.rb +++ b/activerecord/test/models/company.rb @@ -126,8 +126,9 @@ class Client < Company has_many :accounts, :through => :firm belongs_to :account + attr_accessor :touch_firm_on_validate validate do - firm + firm if touch_firm_on_validate end class RaisedOnSave < RuntimeError; end -- cgit v1.2.3