lib/minato/stackdriver/railtie.rb in minato-stackdriver-0.1.0.pre.2 vs lib/minato/stackdriver/railtie.rb in minato-stackdriver-0.1.0.pre.3

- old
+ new

@@ -1,13 +1,11 @@ # frozen_string_literal: true module Minato module Stackdriver class Railtie < ::Rails::Railtie - initializer "minato_stackdriver_setup", - before: "load_environment_config" do |app| - require "stackdriver" - Minato::Stackdriver.init(app) - end + config.before_configuration do |app| + Minato::Stackdriver.init(app) + end end end end