mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
and now even with proper markup
This commit is contained in:
parent
a077e4128d
commit
b6935e5179
1 changed files with 2 additions and 2 deletions
|
@ -119,11 +119,11 @@ module ActiveRecord #:nodoc:
|
|||
class ReadOnlyRecord < ActiveRecordError
|
||||
end
|
||||
|
||||
# +ActiveRecord::Transactions::ClassMethods.transaction+ uses this exception
|
||||
# <tt>ActiveRecord::Transactions::ClassMethods.transaction</tt> uses this exception
|
||||
# to distinguish a deliberate rollback from other exceptional situations.
|
||||
# Normally, raising an exception will cause the +transaction+ method to rollback
|
||||
# the database transaction *and* pass on the exception. But if you raise an
|
||||
# +ActiveRecord::Rollback+ exception, then the database transaction will be rolled back,
|
||||
# <tt>ActiveRecord::Rollback</tt> exception, then the database transaction will be rolled back,
|
||||
# without passing on the exception.
|
||||
#
|
||||
# For example, you could do this in your controller to rollback a transaction:
|
||||
|
|
Loading…
Reference in a new issue