diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-08-12 14:55:31 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-08-12 14:55:31 -0700 |
commit | 196b4e05b7390ac31e12a17ae224b1cf35e4becd (patch) | |
tree | bc5a5e56f8311bd68feb628d89a04e845585f3b5 /lib/arel/attributes | |
parent | 1036749e394e5f7f039e75cdec7675f9ca5047b0 (diff) | |
download | rails-196b4e05b7390ac31e12a17ae224b1cf35e4becd.tar.gz rails-196b4e05b7390ac31e12a17ae224b1cf35e4becd.tar.bz2 rails-196b4e05b7390ac31e12a17ae224b1cf35e4becd.zip |
tables can fetch attributes
Diffstat (limited to 'lib/arel/attributes')
-rw-r--r-- | lib/arel/attributes/attribute.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/arel/attributes/attribute.rb b/lib/arel/attributes/attribute.rb new file mode 100644 index 0000000000..b83a32bee7 --- /dev/null +++ b/lib/arel/attributes/attribute.rb @@ -0,0 +1,13 @@ +module Arel + module Attributes + class Attribute < Struct.new :relation, :name, :column + end + + class String < Attribute; end + class Time < Attribute; end + class Boolean < Attribute; end + class Decimal < Attribute; end + class Float < Attribute; end + class Integer < Attribute; end + end +end |