diff options
author | Bryan Helmkamp <bryan@brynary.com> | 2009-09-20 12:01:32 -0400 |
---|---|---|
committer | Bryan Helmkamp <bryan@brynary.com> | 2009-09-20 12:01:32 -0400 |
commit | 72df9660c3a1a80d38ac504db86e9d5a476b62db (patch) | |
tree | 0aa760670d29873a0917ca1113c69c4c1d07811d | |
parent | 58920bc508a533d02140f4df3db25c3b9e1c7597 (diff) | |
download | rails-72df9660c3a1a80d38ac504db86e9d5a476b62db.tar.gz rails-72df9660c3a1a80d38ac504db86e9d5a476b62db.tar.bz2 rails-72df9660c3a1a80d38ac504db86e9d5a476b62db.zip |
Whitespace
-rw-r--r-- | lib/arel/algebra/extensions/class.rb | 2 | ||||
-rw-r--r-- | lib/arel/algebra/extensions/hash.rb | 2 | ||||
-rw-r--r-- | lib/arel/algebra/extensions/object.rb | 2 | ||||
-rw-r--r-- | lib/arel/algebra/extensions/symbol.rb | 2 | ||||
-rw-r--r-- | lib/arel/algebra/primitives/ordering.rb | 2 | ||||
-rw-r--r-- | lib/arel/engines/sql/extensions/array.rb | 2 | ||||
-rw-r--r-- | lib/arel/engines/sql/extensions/nil_class.rb | 2 | ||||
-rw-r--r-- | lib/arel/engines/sql/extensions/object.rb | 2 | ||||
-rw-r--r-- | lib/arel/engines/sql/extensions/range.rb | 2 | ||||
-rw-r--r-- | spec/arel/algebra/unit/relations/order_spec.rb | 2 | ||||
-rw-r--r-- | spec/arel/engines/sql/unit/primitives/value_spec.rb | 4 |
11 files changed, 12 insertions, 12 deletions
diff --git a/lib/arel/algebra/extensions/class.rb b/lib/arel/algebra/extensions/class.rb index 520111b90f..56cad3aaa8 100644 --- a/lib/arel/algebra/extensions/class.rb +++ b/lib/arel/algebra/extensions/class.rb @@ -25,7 +25,7 @@ module Arel } class_eval methods[method_name], __FILE__, __LINE__ end - + Class.send(:include, self) end end diff --git a/lib/arel/algebra/extensions/hash.rb b/lib/arel/algebra/extensions/hash.rb index 05c15e7ebe..c64225f685 100644 --- a/lib/arel/algebra/extensions/hash.rb +++ b/lib/arel/algebra/extensions/hash.rb @@ -5,7 +5,7 @@ module Arel bound.merge(key.bind(relation) => value.bind(relation)) end end - + Hash.send(:include, self) end end diff --git a/lib/arel/algebra/extensions/object.rb b/lib/arel/algebra/extensions/object.rb index d8c60b5dd5..85a4d951a4 100644 --- a/lib/arel/algebra/extensions/object.rb +++ b/lib/arel/algebra/extensions/object.rb @@ -11,7 +11,7 @@ module Arel def let yield(self) end - + Object.send(:include, self) end end diff --git a/lib/arel/algebra/extensions/symbol.rb b/lib/arel/algebra/extensions/symbol.rb index 9bb47ef7ab..f575ad533a 100644 --- a/lib/arel/algebra/extensions/symbol.rb +++ b/lib/arel/algebra/extensions/symbol.rb @@ -3,7 +3,7 @@ module Arel def to_attribute(relation) Arel::Attribute.new(relation, self) end - + Symbol.send(:include, self) end end diff --git a/lib/arel/algebra/primitives/ordering.rb b/lib/arel/algebra/primitives/ordering.rb index 3efb4c6280..8439e937a9 100644 --- a/lib/arel/algebra/primitives/ordering.rb +++ b/lib/arel/algebra/primitives/ordering.rb @@ -15,7 +15,7 @@ module Arel attributes :attribute deriving :initialize, :== end - + class Descending < Ordering attributes :attribute deriving :initialize, :== diff --git a/lib/arel/engines/sql/extensions/array.rb b/lib/arel/engines/sql/extensions/array.rb index 7f15179721..80041cb5f3 100644 --- a/lib/arel/engines/sql/extensions/array.rb +++ b/lib/arel/engines/sql/extensions/array.rb @@ -8,7 +8,7 @@ module Arel def inclusion_predicate_sql "IN" end - + Array.send(:include, self) end end diff --git a/lib/arel/engines/sql/extensions/nil_class.rb b/lib/arel/engines/sql/extensions/nil_class.rb index 8c335f904a..c3dbc8cd76 100644 --- a/lib/arel/engines/sql/extensions/nil_class.rb +++ b/lib/arel/engines/sql/extensions/nil_class.rb @@ -4,7 +4,7 @@ module Arel def equality_predicate_sql 'IS' end - + NilClass.send(:include, self) end end diff --git a/lib/arel/engines/sql/extensions/object.rb b/lib/arel/engines/sql/extensions/object.rb index 8fe63dba2f..9f15dff771 100644 --- a/lib/arel/engines/sql/extensions/object.rb +++ b/lib/arel/engines/sql/extensions/object.rb @@ -8,7 +8,7 @@ module Arel def equality_predicate_sql '=' end - + Object.send(:include, self) end end diff --git a/lib/arel/engines/sql/extensions/range.rb b/lib/arel/engines/sql/extensions/range.rb index 25bf1d01da..46124f8865 100644 --- a/lib/arel/engines/sql/extensions/range.rb +++ b/lib/arel/engines/sql/extensions/range.rb @@ -8,7 +8,7 @@ module Arel def inclusion_predicate_sql "BETWEEN" end - + Range.send(:include, self) end end diff --git a/spec/arel/algebra/unit/relations/order_spec.rb b/spec/arel/algebra/unit/relations/order_spec.rb index 4190901024..9fcdffe340 100644 --- a/spec/arel/algebra/unit/relations/order_spec.rb +++ b/spec/arel/algebra/unit/relations/order_spec.rb @@ -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) diff --git a/spec/arel/engines/sql/unit/primitives/value_spec.rb b/spec/arel/engines/sql/unit/primitives/value_spec.rb index c8f03fc270..807090e31a 100644 --- a/spec/arel/engines/sql/unit/primitives/value_spec.rb +++ b/spec/arel/engines/sql/unit/primitives/value_spec.rb @@ -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 |