From c414ee7e088b5594984e55d03f12d6a1b0e76543 Mon Sep 17 00:00:00 2001 From: Ben Bader Date: Tue, 10 Sep 2019 17:16:52 -0700 Subject: [PATCH 1/2] Require ActiveSupport.on_load in flipper-active_record --- lib/flipper-active_record.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/flipper-active_record.rb b/lib/flipper-active_record.rb index 1d95ec179..e90cb0d63 100644 --- a/lib/flipper-active_record.rb +++ b/lib/flipper-active_record.rb @@ -1,3 +1,5 @@ +require 'activesupport/lazy_load_hooks' + ActiveSupport.on_load(:active_record) do require 'flipper/adapters/active_record' end From a4a9bcca978c9e814d0f0182c7ac65f18755a072 Mon Sep 17 00:00:00 2001 From: Ben Bader Date: Tue, 10 Sep 2019 21:08:18 -0700 Subject: [PATCH 2/2] Drop --no-rdoc and --no-ri to fix Travis builds --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 747dd2c67..a27ba7a92 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,7 +6,7 @@ rvm: - 2.4 - 2.5 before_install: - - gem install bundler -v 1.17.3 --no-rdoc --no-ri --without guard + - gem install bundler -v 1.17.3 --without guard - bundle _1.17.3_ install script: bundle exec rubocop -D && bundle exec rake services: