Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Whitespace

  • Loading branch information...
commit 72df9660c3a1a80d38ac504db86e9d5a476b62db 1 parent 58920bc
Bryan Helmkamp brynary authored
2  lib/arel/algebra/extensions/class.rb
View
@@ -25,7 +25,7 @@ def ==(other)
}
class_eval methods[method_name], __FILE__, __LINE__
end
-
+
Class.send(:include, self)
end
end
2  lib/arel/algebra/extensions/hash.rb
View
@@ -5,7 +5,7 @@ def bind(relation)
bound.merge(key.bind(relation) => value.bind(relation))
end
end
-
+
Hash.send(:include, self)
end
end
2  lib/arel/algebra/extensions/object.rb
View
@@ -11,7 +11,7 @@ def find_correlate_in(relation)
def let
yield(self)
end
-
+
Object.send(:include, self)
end
end
2  lib/arel/algebra/extensions/symbol.rb
View
@@ -3,7 +3,7 @@ module SymbolExtensions
def to_attribute(relation)
Arel::Attribute.new(relation, self)
end
-
+
Symbol.send(:include, self)
end
end
2  lib/arel/algebra/primitives/ordering.rb
View
@@ -15,7 +15,7 @@ class Ascending < Ordering
attributes :attribute
deriving :initialize, :==
end
-
+
class Descending < Ordering
attributes :attribute
deriving :initialize, :==
2  lib/arel/engines/sql/extensions/array.rb
View
@@ -8,7 +8,7 @@ def to_sql(formatter = nil)
def inclusion_predicate_sql
"IN"
end
-
+
Array.send(:include, self)
end
end
2  lib/arel/engines/sql/extensions/nil_class.rb
View
@@ -4,7 +4,7 @@ module NilClassExtensions
def equality_predicate_sql
'IS'
end
-
+
NilClass.send(:include, self)
end
end
2  lib/arel/engines/sql/extensions/object.rb
View
@@ -8,7 +8,7 @@ def to_sql(formatter)
def equality_predicate_sql
'='
end
-
+
Object.send(:include, self)
end
end
2  lib/arel/engines/sql/extensions/range.rb
View
@@ -8,7 +8,7 @@ def to_sql(formatter = nil)
def inclusion_predicate_sql
"BETWEEN"
end
-
+
Range.send(:include, self)
end
end
2  spec/arel/algebra/unit/relations/order_spec.rb
View
@@ -6,7 +6,7 @@ module Arel
@relation = Table.new(:users)
@attribute = @relation[:id]
end
-
+
describe "#==" do
it "returns true when the Orders are for the same attribute and direction" do
Ascending.new(@attribute).should == Ascending.new(@attribute)
4 spec/arel/engines/sql/unit/primitives/value_spec.rb
View
@@ -9,11 +9,11 @@ module Arel
describe '#to_sql' do
it "appropriately quotes the value" do
Value.new(1, @relation).to_sql.should be_like('1')
-
+
adapter_is_not :postgresql do
Value.new('asdf', @relation).to_sql.should be_like("'asdf'")
end
-
+
adapter_is :postgresql do
Value.new('asdf', @relation).to_sql.should be_like("E'asdf'")
end
Please sign in to comment.
Something went wrong with that request. Please try again.