aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/attributes
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2010-08-12 14:55:31 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2010-08-12 14:55:31 -0700
commit196b4e05b7390ac31e12a17ae224b1cf35e4becd (patch)
treebc5a5e56f8311bd68feb628d89a04e845585f3b5 /lib/arel/attributes
parent1036749e394e5f7f039e75cdec7675f9ca5047b0 (diff)
downloadrails-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.rb13
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