lib/rails/generators/generated_attribute.rb in railties-3.0.0.beta4 vs lib/rails/generators/generated_attribute.rb in railties-3.0.0.rc
- old
+ new
@@ -1,5 +1,7 @@
+require 'active_support/time'
+
module Rails
module Generators
class GeneratedAttribute
attr_accessor :name, :type
@@ -11,10 +13,9 @@
@field_type ||= case type
when :integer, :float, :decimal then :text_field
when :time then :time_select
when :datetime, :timestamp then :datetime_select
when :date then :date_select
- when :string then :text_field
when :text then :text_area
when :boolean then :check_box
else
:text_field
end