diff options
author | Arthur Neves <arthurnn@gmail.com> | 2013-09-25 19:50:42 -0400 |
---|---|---|
committer | Arthur Neves <arthurnn@gmail.com> | 2013-09-25 19:50:42 -0400 |
commit | e1bb9fc671a8d33fb70f94f094bc5644e9c81a18 (patch) | |
tree | 492cc58936de3229d4941bac3a3b7ed9018b9f2e /activerecord/test/models/company.rb | |
parent | fdc3c08e55dff879f154eef6dc6227ca3b50e2de (diff) | |
download | rails-e1bb9fc671a8d33fb70f94f094bc5644e9c81a18.tar.gz rails-e1bb9fc671a8d33fb70f94f094bc5644e9c81a18.tar.bz2 rails-e1bb9fc671a8d33fb70f94f094bc5644e9c81a18.zip |
on tests: dont always touch firm on validate
Diffstat (limited to 'activerecord/test/models/company.rb')
-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 |