Skip to content

Commit

Permalink
Merge pull request #7 from instacart/laith/rails-6
Browse files Browse the repository at this point in the history
Rails 6 support
  • Loading branch information
LaithAzer authored Jan 21, 2022
2 parents 85ecea7 + 60ecb47 commit dd95d76
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions lib/odbc_adapter/adapters/null_odbc_adapter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ module Adapters
# registry. This allows for minimal support for DBMSs for which we don't
# have an explicit adapter.
class NullODBCAdapter < ActiveRecord::ConnectionAdapters::ODBCAdapter
class BindSubstitution < Arel::Visitors::ToSql
# BindVisitor was removed in Arel 9, or Rails 5.2
include Arel::Visitors::BindVisitor if Arel::VERSION.to_i < 9
class BindSubstitution < Arel::Visitors::ToSql
end

# Using a BindVisitor so that the SQL string gets substituted before it is
Expand Down
2 changes: 1 addition & 1 deletion odbc_adapter.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
spec.require_paths = ['lib']

spec.add_dependency 'activerecord', '~> 5.0'
spec.add_dependency 'activerecord', '>= 5.2', '< 7'
spec.add_dependency 'ruby-odbc', '~> 0.9'

spec.add_development_dependency 'bundler', '>= 1.14'
Expand Down

0 comments on commit dd95d76

Please sign in to comment.