提交 9105c59a 编写于 作者: A Arun Agrawal

Remove deprecated `transaction_joinable=`

in favor of `begin_transaction`
with `:joinable` option.
上级 b2350111
* Remove deprecated `transaction_joinable=` in favor of `begin_transaction`
with `:joinable` option.
*Arun Agrawal*
* Remove deprecated `decrement_open_transactions`. * Remove deprecated `decrement_open_transactions`.
*Arun Agrawal* *Arun Agrawal*
......
...@@ -387,12 +387,6 @@ def open_transactions ...@@ -387,12 +387,6 @@ def open_transactions
@transaction.number @transaction.number
end end
def transaction_joinable=(joinable)
message = "#transaction_joinable= is deprecated. Please pass the :joinable option to #begin_transaction instead."
ActiveSupport::Deprecation.warn message
@transaction.joinable = joinable
end
def create_savepoint def create_savepoint
end end
......
...@@ -593,14 +593,5 @@ def test_transaction_isolation__read_committed ...@@ -593,14 +593,5 @@ def test_transaction_isolation__read_committed
assert_equal original_salary, Developer.find(1).salary assert_equal original_salary, Developer.find(1).salary
end end
test "#transaction_joinable= is deprecated" do
Developer.transaction do
conn = Developer.connection
assert conn.current_transaction.joinable?
assert_deprecated { conn.transaction_joinable = false }
assert !conn.current_transaction.joinable?
end
end
end end
end end
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册