Skip to content

Commit 10531e0

Browse files
committed
Use send :include for modules for 1.9 compatibility. Fixes #383.
1 parent 775b3c3 commit 10531e0

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
* Guard against empty view definitions when `sb_helptext` fails silently. Fixes #337.
77
* Proper table/column escaping in the `change_column_null` method. Fixes #355.
8+
* Use `send :include` for modules for 1.9 compatibility. Fixes #383.
89

910

1011
## v4.2.0

lib/active_record/connection_adapters/sqlserver/transaction.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def current_isolation_level
1919

2020
end
2121

22-
Transaction.include SQLServerTransaction
22+
Transaction.send :include, SQLServerTransaction
2323

2424
module SQLServerRealTransaction
2525

@@ -46,7 +46,7 @@ def reset_starting_isolation_level
4646

4747
end
4848

49-
RealTransaction.include SQLServerRealTransaction
49+
RealTransaction.send :include, SQLServerRealTransaction
5050

5151
end
5252
end

0 commit comments

Comments
 (0)