lib/groonga_client_model/railtie.rb in groonga-client-model-0.9.5 vs lib/groonga_client_model/railtie.rb in groonga-client-model-0.9.6

- old
+ new

@@ -42,9 +42,16 @@ ActiveSupport.on_load(:groonga_client_model) do self.logger ||= Rails.logger end end + initializer "groonga_client_model.log_runtime" do + require "groonga_client_model/railties/controller_runtime" + ActiveSupport.on_load(:action_controller) do + include GroongaClientModel::Railties::ControllerRuntime + end + end + initializer "groonga_client_model.set_configs" do |app| ActiveSupport.on_load(:groonga_client_model) do app.config.groonga_client_model.each do |key, value| send("#{key}=", value) end