From 91f8eaadce519acfd16a1781a635178ab01535e6 Mon Sep 17 00:00:00 2001 From: John Nunemaker Date: Mon, 21 Dec 2015 12:48:29 -0500 Subject: [PATCH] Allow gemspec to be based on rails version for travis --- flipper-active_record.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flipper-active_record.gemspec b/flipper-active_record.gemspec index 3c7bd2dbd..a5b9f8bb5 100644 --- a/flipper-active_record.gemspec +++ b/flipper-active_record.gemspec @@ -20,5 +20,5 @@ Gem::Specification.new do |gem| gem.version = Flipper::VERSION gem.add_dependency 'flipper', "~> #{Flipper::VERSION}" - gem.add_dependency 'activerecord', '~> 4.2.0' + gem.add_dependency 'activerecord', "~> #{ENV["RAILS_VERSION"] || '4.2.0'}" end