diff options
Diffstat (limited to 'activerecord/test/models')
-rw-r--r-- | activerecord/test/models/company.rb | 3 |
1 files changed, 2 insertions, 1 deletions
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 |