diff options
Diffstat (limited to 'lib/arel/algebra/attributes')
-rw-r--r-- | lib/arel/algebra/attributes/attribute.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/arel/algebra/attributes/attribute.rb b/lib/arel/algebra/attributes/attribute.rb index 8a7993f284..0ad9382a52 100644 --- a/lib/arel/algebra/attributes/attribute.rb +++ b/lib/arel/algebra/attributes/attribute.rb @@ -27,6 +27,10 @@ module Arel false end + def eval(row) + row[self] + end + module Transformations def self.included(klass) klass.send :alias_method, :eql?, :== |