vendor/after_commit/lib/after_commit.rb in dpickett-thinking-sphinx-1.1.4 vs vendor/after_commit/lib/after_commit.rb in dpickett-thinking-sphinx-1.1.12

- old
+ new

@@ -37,6 +37,9 @@ ActiveRecord::Base.send(:include, AfterCommit::ActiveRecord) Object.subclasses_of(ActiveRecord::ConnectionAdapters::AbstractAdapter).each do |klass| klass.send(:include, AfterCommit::ConnectionAdapters) -end \ No newline at end of file +end +if defined?(JRUBY_VERSION) and defined?(JdbcSpec::MySQL) + JdbcSpec::MySQL.send :include, AfterCommit::ConnectionAdapters +end