Skip to content

Commit 306844b

Browse files
authored
add in_transaction?/0 support
add in_transaction?/0 support to work with properly ecto 2.1
1 parent 5e27808 commit 306844b

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

lib/mongo_ecto.ex

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -712,6 +712,12 @@ defmodule Mongo.Ecto do
712712
IO.puts "[warning] MongoDB adapter does not support references, and will not enforce foreign_key constraints"
713713
end
714714
end
715+
716+
#
717+
# Transaction callbacks
718+
#
719+
720+
def in_transaction?(_repo), do: false
715721

716722
## Mongo specific calls
717723

0 commit comments

Comments
 (0)