Skip to content

Commit

Permalink
Merge pull request #192 from johnreilly/wait-for-AR-on-load
Browse files Browse the repository at this point in the history
Wait for ActiveSupport to tell us when active_record is loaded
  • Loading branch information
greatuserongithub committed Nov 14, 2016
2 parents 0a97100 + 4233937 commit 40f7847
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 40f7847

Please sign in to comment.