diff options
author | Emilio Tagua <miloops@gmail.com> | 2009-04-24 21:48:00 -0300 |
---|---|---|
committer | Emilio Tagua <miloops@gmail.com> | 2009-04-24 21:48:00 -0300 |
commit | 45646ec54c4c4a3c7340b79deea9e3cf76554f0b (patch) | |
tree | 2967aa6a6b4363fdc174fd83b7dd4bd57cd4e4dd /lib/arel/primitives | |
parent | 1b1fc880bf7129a422901417bd6b9fede292aa7e (diff) | |
download | rails-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.rb | 8 |
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 |