aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/primitives
diff options
context:
space:
mode:
authorEmilio Tagua <miloops@gmail.com>2009-04-24 21:48:00 -0300
committerEmilio Tagua <miloops@gmail.com>2009-04-24 21:48:00 -0300
commit45646ec54c4c4a3c7340b79deea9e3cf76554f0b (patch)
tree2967aa6a6b4363fdc174fd83b7dd4bd57cd4e4dd /lib/arel/primitives
parent1b1fc880bf7129a422901417bd6b9fede292aa7e (diff)
downloadrails-45646ec54c4c4a3c7340b79deea9e3cf76554f0b.tar.gz
rails-45646ec54c4c4a3c7340b79deea9e3cf76554f0b.tar.bz2
rails-45646ec54c4c4a3c7340b79deea9e3cf76554f0b.zip
Added aggregation and to_attribute methods to Value
Diffstat (limited to 'lib/arel/primitives')
-rw-r--r--lib/arel/primitives/value.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/arel/primitives/value.rb b/lib/arel/primitives/value.rb
index 74baa06e5b..36a7fb7c71 100644
--- a/lib/arel/primitives/value.rb
+++ b/lib/arel/primitives/value.rb
@@ -16,5 +16,13 @@ module Arel
def bind(relation)
Value.new(value, relation)
end
+
+ def aggregation?
+ false
+ end
+
+ def to_attribute
+ value
+ end
end
end