lib/grumlin/middlewares/run_query.rb in grumlin-0.23.0 vs lib/grumlin/middlewares/run_query.rb in grumlin-1.0.0.rc1

- old
+ new

@@ -1,11 +1,7 @@ # frozen_string_literal: true -module Grumlin - module Middlewares - class RunQuery < Middleware - def call(env) - env[:results] = env[:pool].acquire { |c| c.write(env[:query]) } - end - end +class Grumlin::Middlewares::RunQuery < Grumlin::Middlewares::Middleware + def call(env) + env[:results] = env[:pool].acquire { |c| c.write(env[:query]) } end end