aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/extensions/object.rb
diff options
context:
space:
mode:
authorEmilio Tagua <miloops@gmail.com>2009-04-23 18:53:03 -0300
committerEmilio Tagua <miloops@gmail.com>2009-04-23 18:53:03 -0300
commita454d45403cd0b8a24b05b7ff37021e307905825 (patch)
tree1d5b989e1bd32f47f00f7e72d3bfe97cf085ac0e /lib/arel/extensions/object.rb
parent318cf575eb2b7cf42cb133b3f24cd1aa5fa5e155 (diff)
downloadrails-a454d45403cd0b8a24b05b7ff37021e307905825.tar.gz
rails-a454d45403cd0b8a24b05b7ff37021e307905825.tar.bz2
rails-a454d45403cd0b8a24b05b7ff37021e307905825.zip
Fix insertion to work on SQLite3
Diffstat (limited to 'lib/arel/extensions/object.rb')
-rw-r--r--lib/arel/extensions/object.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/arel/extensions/object.rb b/lib/arel/extensions/object.rb
index ea73c336dc..14e2f82ce5 100644
--- a/lib/arel/extensions/object.rb
+++ b/lib/arel/extensions/object.rb
@@ -1,23 +1,23 @@
-class Object
+class Object
def bind(relation)
Arel::Value.new(self, relation)
end
-
+
def find_correlate_in(relation)
bind(relation)
end
-
+
def to_sql(formatter)
formatter.scalar self
end
-
+
def equality_predicate_sql
'='
end
-
+
def metaclass
class << self
self
end
end
-end \ No newline at end of file
+end