Permalink
Browse files

Added Bignum to visitor

  • Loading branch information...
invadersmustdie authored and tenderlove committed Oct 26, 2010
1 parent c66f025 commit 0e8388bc2bba07d9b29fb716c2ba774360ad6aa4
Showing with 5 additions and 0 deletions.
  1. +1 −0 lib/arel/visitors/to_sql.rb
  2. +4 −0 test/visitors/test_to_sql.rb
@@ -263,6 +263,7 @@ def visit_Arel_Attributes_Attribute o
def visit_Fixnum o; o end
alias :visit_Arel_Nodes_SqlLiteral :visit_Fixnum
alias :visit_Arel_SqlLiteral :visit_Fixnum # This is deprecated
+ alias :visit_Bignum :visit_Fixnum
def visit_String o; quote(o, @last_column) end
@@ -29,6 +29,10 @@ module Visitors
@visitor.accept 2.14
end
+ it "should visit_Bignum" do
+ @visitor.accept 8787878092
+ end
+
it "should visit_Hash" do
@visitor.accept({:a => 1})
end

0 comments on commit 0e8388b

Please sign in to comment.