diff --git a/lib/consul/active_record.rb b/lib/consul/active_record.rb index 0b8c95f..808fbad 100644 --- a/lib/consul/active_record.rb +++ b/lib/consul/active_record.rb @@ -14,4 +14,6 @@ def authorize_values_for(property, options = {}) end end -ActiveRecord::Base.send(:extend, Consul::ActiveRecord) +ActiveSupport.on_load(:active_record) do + extend(Consul::ActiveRecord) +end