diff options
author | Emilio Tagua <miloops@gmail.com> | 2009-04-24 17:10:52 -0300 |
---|---|---|
committer | Emilio Tagua <miloops@gmail.com> | 2009-04-24 17:10:52 -0300 |
commit | 1b1fc880bf7129a422901417bd6b9fede292aa7e (patch) | |
tree | 62fa68b6edeed1a61ab13887fa6fafe804abfc8d /lib/arel/primitives | |
parent | a454d45403cd0b8a24b05b7ff37021e307905825 (diff) | |
download | rails-1b1fc880bf7129a422901417bd6b9fede292aa7e.tar.gz rails-1b1fc880bf7129a422901417bd6b9fede292aa7e.tar.bz2 rails-1b1fc880bf7129a422901417bd6b9fede292aa7e.zip |
Removed table quotings to be SQLite3 compliant. Delete and update will returrn the size of modified records to prevent addional queries to be done.
Diffstat (limited to 'lib/arel/primitives')
-rw-r--r-- | lib/arel/primitives/value.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/arel/primitives/value.rb b/lib/arel/primitives/value.rb index 809af7c206..74baa06e5b 100644 --- a/lib/arel/primitives/value.rb +++ b/lib/arel/primitives/value.rb @@ -3,8 +3,8 @@ module Arel attributes :value, :relation deriving :initialize, :== delegate :inclusion_predicate_sql, :equality_predicate_sql, :to => :value - - + + def to_sql(formatter = Sql::WhereCondition.new(relation)) formatter.value value end @@ -12,9 +12,9 @@ module Arel def format(object) object.to_sql(Sql::Value.new(relation)) end - + def bind(relation) Value.new(value, relation) end end -end
\ No newline at end of file +end |