From 8b5a22554a2fa35fe5d6f0b9b6e21ad87b9c709c Mon Sep 17 00:00:00 2001 From: Brian Christian Date: Fri, 7 Aug 2020 13:31:02 -0700 Subject: [PATCH] Support Rails 5.1.x --- solidus_support.gemspec | 2 +- spec/support/dummy_app.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/solidus_support.gemspec b/solidus_support.gemspec index ddc1c61..3e035b1 100644 --- a/solidus_support.gemspec +++ b/solidus_support.gemspec @@ -21,7 +21,7 @@ Gem::Specification.new do |s| s.executables = s.files.grep(%r{^exe/}) { |f| File.basename(f) } s.require_paths = ["lib"] - s.add_dependency 'activesupport', ['>= 5.2', '< 7.0.x'] + s.add_dependency 'activesupport', ['>= 5.1', '< 7.0.x'] s.add_development_dependency 'bundler' s.add_development_dependency 'rake' diff --git a/spec/support/dummy_app.rb b/spec/support/dummy_app.rb index 56c3c74..eb44315 100644 --- a/spec/support/dummy_app.rb +++ b/spec/support/dummy_app.rb @@ -14,7 +14,7 @@ module DummyApp class Application < ::Rails::Application config.eager_load = false config.paths['config/database'] = File.expand_path('dummy_app/database.yml', __dir__) - config.active_record.sqlite3.represent_boolean_as_integer = true + config.active_record.sqlite3.represent_boolean_as_integer = true unless Gem::Version.new(Rails.version) < Gem::Version.new('5.2') end end