diff options
author | Michael Koziarski <michael@koziarski.com> | 2007-05-18 01:02:08 +0000 |
---|---|---|
committer | Michael Koziarski <michael@koziarski.com> | 2007-05-18 01:02:08 +0000 |
commit | ebbe4fb0d41feb45628715cd045d89e7bb8ab117 (patch) | |
tree | 17f6be68062031849929fac182e8cbb99b58c4ca /activerecord/lib/active_record/base.rb | |
parent | 1ac7cd56fe4b49f0d30c96b2ec68abde8b05ee18 (diff) | |
download | rails-ebbe4fb0d41feb45628715cd045d89e7bb8ab117.tar.gz rails-ebbe4fb0d41feb45628715cd045d89e7bb8ab117.tar.bz2 rails-ebbe4fb0d41feb45628715cd045d89e7bb8ab117.zip |
Replace the transaction {|transaction|..} semantics with a new Exception ActiveRecord::Rollback. Closes #8030 [Koz]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6754 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/lib/active_record/base.rb')
-rwxr-xr-x | activerecord/lib/active_record/base.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb index bb3c58067d..31b25e5979 100755 --- a/activerecord/lib/active_record/base.rb +++ b/activerecord/lib/active_record/base.rb @@ -34,6 +34,8 @@ module ActiveRecord #:nodoc: end class ReadOnlyRecord < StandardError #:nodoc: end + class Rollback < StandardError #:nodoc: + end class AttributeAssignmentError < ActiveRecordError #:nodoc: attr_reader :exception, :attribute |