aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSean Griffin <sean@seantheprogrammer.com>2015-10-20 14:22:07 -0600
committerSean Griffin <sean@seantheprogrammer.com>2015-10-20 14:22:52 -0600
commit0ceaa733aa327e2117c5e059f4cd00126449e8e8 (patch)
tree25c85b10398ee0e22a143c22b129fc37f4e935dc
parent8b64aba17bbb7bc6af6f0aafb874904147f373bf (diff)
downloadrails-0ceaa733aa327e2117c5e059f4cd00126449e8e8.tar.gz
rails-0ceaa733aa327e2117c5e059f4cd00126449e8e8.tar.bz2
rails-0ceaa733aa327e2117c5e059f4cd00126449e8e8.zip
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...
-rw-r--r--activerecord/lib/active_record/connection_adapters/determine_if_preparable_visitor.rb30
1 files 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