Skip to content

Commit

Permalink
Wait for ActiveSupport to tell us when active_record is loaded
Browse files Browse the repository at this point in the history
This prevents overwriting the  setting in Rails 5, as described in flippercloud#129
  • Loading branch information
johnreilly committed Nov 10, 2016
1 parent 0a97100 commit 4233937
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/flipper-active_record.rb
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
require 'flipper/adapters/active_record'
ActiveSupport.on_load(:active_record) do
require 'flipper/adapters/active_record'
end

0 comments on commit 4233937

Please sign in to comment.