Skip to content

Commit

Permalink
Remove deprecated transaction_joinable=
Browse files Browse the repository at this point in the history
in favor of `begin_transaction`
with `:joinable` option.
  • Loading branch information
arunagw committed Jul 3, 2013
1 parent b235011 commit 9105c59
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 15 deletions.
5 changes: 5 additions & 0 deletions activerecord/CHANGELOG.md
@@ -1,3 +1,8 @@
* Remove deprecated `transaction_joinable=` in favor of `begin_transaction`
with `:joinable` option.

*Arun Agrawal*

* Remove deprecated `decrement_open_transactions`.

*Arun Agrawal*
Expand Down
Expand Up @@ -387,12 +387,6 @@ def open_transactions
@transaction.number
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
end

Expand Down
9 changes: 0 additions & 9 deletions activerecord/test/cases/transactions_test.rb
Expand Up @@ -593,14 +593,5 @@ def test_transaction_isolation__read_committed

assert_equal original_salary, Developer.find(1).salary
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

0 comments on commit 9105c59

Please sign in to comment.