From 0ceaa733aa327e2117c5e059f4cd00126449e8e8 Mon Sep 17 00:00:00 2001 From: Sean Griffin Date: Tue, 20 Oct 2015 14:22:07 -0600 Subject: [PATCH] Don't add classes to the top level namespace I've been writing too much Rust. My mind is still in the mode of things being auto-namespaced based on the file... --- .../determine_if_preparable_visitor.rb | 30 +++++++++++-------- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/activerecord/lib/active_record/connection_adapters/determine_if_preparable_visitor.rb b/activerecord/lib/active_record/connection_adapters/determine_if_preparable_visitor.rb index 06356014ee..0fdc185c45 100644 --- a/activerecord/lib/active_record/connection_adapters/determine_if_preparable_visitor.rb +++ b/activerecord/lib/active_record/connection_adapters/determine_if_preparable_visitor.rb @@ -1,18 +1,22 @@ -module DetermineIfPreparableVisitor - attr_reader :preparable +module ActiveRecord + module ConnectionAdapters + module DetermineIfPreparableVisitor + attr_reader :preparable - def accept(*) - @preparable = true - super - end + def accept(*) + @preparable = true + super + end - def visit_Arel_Nodes_In(*) - @preparable = false - super - end + def visit_Arel_Nodes_In(*) + @preparable = false + super + end - def visit_Arel_Nodes_SqlLiteral(*) - @preparable = false - super + def visit_Arel_Nodes_SqlLiteral(*) + @preparable = false + super + end + end end end