From 113240e0b75e53b41e3d0837ec53ec594bcd9a28 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Mon, 25 Apr 2011 12:12:05 -0700 Subject: adding attribute#lower for lowercasing an attribute --- lib/arel/attributes/attribute.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/arel/attributes') diff --git a/lib/arel/attributes/attribute.rb b/lib/arel/attributes/attribute.rb index 5aea87ac43..240f224d8c 100644 --- a/lib/arel/attributes/attribute.rb +++ b/lib/arel/attributes/attribute.rb @@ -4,6 +4,12 @@ module Arel include Arel::Expressions include Arel::Predications include Arel::Math + + ### + # Create a node for lowering this attribute + def lower + relation.lower self + end end class String < Attribute; end -- cgit v1.2.3