Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add autoload :TransactionState to fix Marshal.load issues

  • Loading branch information...
commit 83689bec7737f7b03b1ba245c644071ed983349b 1 parent 0fca7d6
Jason Ayre jasonayre authored
5 activerecord/CHANGELOG.md
View
@@ -1,3 +1,8 @@
+* Fix `Uninitialized constant ActiveRecord::ConnectionAdapters::TransactionState error when trying to Marshall.load AR Result.
+ Adds autoload :TransactionState, fixes #12790
+
+ *Jason Ayre*
+
* `.unscope` now removes conditions specified in `default_scope`.
*Jon Leighton*
1  activerecord/lib/active_record/connection_adapters/abstract_adapter.rb
View
@@ -40,6 +40,7 @@ module ConnectionAdapters # :nodoc:
autoload :ClosedTransaction
autoload :RealTransaction
autoload :SavepointTransaction
+ autoload :TransactionState
end
# Active Record supports multiple database systems. AbstractAdapter and
Please sign in to comment.
Something went wrong with that request. Please try again.