diff options
author | Neeraj Singh <neerajdotname@gmail.com> | 2010-07-13 15:30:23 -0400 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-07-13 22:02:00 +0200 |
commit | f4fbc2c1f943ff11776b2c7c34df6bcbe655a4e5 (patch) | |
tree | ebea9bbac11869cf70391f4521d052d2145d6c38 /activerecord/test/models | |
parent | e35e6171bb27c26b13469ccf188c25bb324e38ab (diff) | |
download | rails-f4fbc2c1f943ff11776b2c7c34df6bcbe655a4e5.tar.gz rails-f4fbc2c1f943ff11776b2c7c34df6bcbe655a4e5.tar.bz2 rails-f4fbc2c1f943ff11776b2c7c34df6bcbe655a4e5.zip |
update_attributes and update_attributes! are now wrapped in a transaction
[#922 state:resovled]
Signed-off-by: José Valim <jose.valim@gmail.com>
Diffstat (limited to 'activerecord/test/models')
-rw-r--r-- | activerecord/test/models/author.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/activerecord/test/models/author.rb b/activerecord/test/models/author.rb index 655b45bf57..727978431c 100644 --- a/activerecord/test/models/author.rb +++ b/activerecord/test/models/author.rb @@ -108,6 +108,8 @@ class Author < ActiveRecord::Base %w(twitter github) end + validates_presence_of :name + private def log_before_adding(object) @post_log << "before_adding#{object.id || '<new>'}" |