diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2011-04-25 12:12:05 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-04-25 12:12:05 -0700 |
commit | 113240e0b75e53b41e3d0837ec53ec594bcd9a28 (patch) | |
tree | 60b454b7008a06ae1a8946ffed0b542afa3cfb16 /lib | |
parent | 30c7f0e4b365c85b7a910a0553ed936be56b9c4b (diff) | |
download | rails-113240e0b75e53b41e3d0837ec53ec594bcd9a28.tar.gz rails-113240e0b75e53b41e3d0837ec53ec594bcd9a28.tar.bz2 rails-113240e0b75e53b41e3d0837ec53ec594bcd9a28.zip |
adding attribute#lower for lowercasing an attribute
Diffstat (limited to 'lib')
-rw-r--r-- | lib/arel/attributes/attribute.rb | 6 |
1 files changed, 6 insertions, 0 deletions
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 |