Skip to content

Commit

Permalink
Merge pull request #432 from bendb-instacart/require_activesupport
Browse files Browse the repository at this point in the history
Require ActiveSupport.on_load in flipper-active_record
  • Loading branch information
jnunemaker authored Sep 12, 2019
2 parents 171457d + a4a9bcc commit 51d7c84
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 2 additions & 0 deletions lib/flipper-active_record.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
require 'activesupport/lazy_load_hooks'

ActiveSupport.on_load(:active_record) do
require 'flipper/adapters/active_record'
end

0 comments on commit 51d7c84

Please sign in to comment.