testing cron job in edge api generation

This commit is contained in:
Xavier Noria
2010-02-15 23:50:05 +01:00
parent 6f3c5f6787
commit a077e4128d

View File

@@ -119,11 +119,11 @@ module ActiveRecord #:nodoc:
class ReadOnlyRecord < ActiveRecordError
end
# ActiveRecord::Transactions::ClassMethods.transaction uses this exception
# +ActiveRecord::Transactions::ClassMethods.transaction+ 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,
# +ActiveRecord::Rollback+ 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: