We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent afe57dd commit 4750e61Copy full SHA for 4750e61
railties/lib/rails/generators/generated_attribute.rb
@@ -9,12 +9,13 @@ def initialize(name, type)
9
10
def field_type
11
@field_type ||= case type
12
- when :integer, :float, :decimal then :text_field
13
- when :datetime, :timestamp, :time then :datetime_select
14
- when :date then :date_select
15
- when :string then :text_field
16
- when :text then :text_area
17
- when :boolean then :check_box
+ 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
18
+ when :boolean then :check_box
19
else
20
:text_field
21
end
0 commit comments