diff options
author | Emilio Tagua <miloops@gmail.com> | 2010-09-15 09:41:35 -0300 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-09-17 17:03:51 +0200 |
commit | a521a3c05a34e15b68e44d46cb78b6ced1544177 (patch) | |
tree | 840f58703994c17107014faa027bca7fbecbb15f /activeresource/lib | |
parent | 3480551e67d2bd97b50a9f95b8f0a49132c38bec (diff) | |
download | rails-a521a3c05a34e15b68e44d46cb78b6ced1544177.tar.gz rails-a521a3c05a34e15b68e44d46cb78b6ced1544177.tar.bz2 rails-a521a3c05a34e15b68e44d46cb78b6ced1544177.zip |
Remove TODO and support all expected attributes.
Signed-off-by: José Valim <jose.valim@gmail.com>
Diffstat (limited to 'activeresource/lib')
-rw-r--r-- | activeresource/lib/active_resource/schema.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/activeresource/lib/active_resource/schema.rb b/activeresource/lib/active_resource/schema.rb index 5758ac9502..3fd37a9bb6 100644 --- a/activeresource/lib/active_resource/schema.rb +++ b/activeresource/lib/active_resource/schema.rb @@ -4,7 +4,7 @@ module ActiveResource # :nodoc: class Schema # :nodoc: # attributes can be known to be one of these types. They are easy to # cast to/from. - KNOWN_ATTRIBUTE_TYPES = %w( string integer float ) + KNOWN_ATTRIBUTE_TYPES = %w( string text integer float decimal datetime timestamp time date binary boolean ) # An array of attribute definitions, representing the attributes that # have been defined. @@ -39,8 +39,6 @@ module ActiveResource # :nodoc: # The following are the attribute types supported by Active Resource # migrations. - # TODO: We should eventually support all of these: - # %w( string text integer float decimal datetime timestamp time date binary boolean ).each do |attr_type| KNOWN_ATTRIBUTE_TYPES.each do |attr_type| class_eval <<-EOV, __FILE__, __LINE__ + 1 def #{attr_type.to_s}(*args) |