lib/formtastic/helpers/input_helper.rb in formtastic-2.3.1 vs lib/formtastic/helpers/input_helper.rb in formtastic-3.0.0.rc

- old
+ new

@@ -86,10 +86,11 @@ # # Available input styles: # # * `:boolean` (see {Inputs::BooleanInput}) # * `:check_boxes` (see {Inputs::CheckBoxesInput}) + # * `:color` (see {Inputs::ColorInput}) # * `:country` (see {Inputs::CountryInput}) # * `:datetime_select` (see {Inputs::DatetimeSelectInput}) # * `:date_select` (see {Inputs::DateSelectInput}) # * `:email` (see {Inputs::EmailInput}) # * `:file` (see {Inputs::FileInput}) @@ -269,9 +270,10 @@ return :time_zone if method.to_s =~ /time_zone/ return :email if method.to_s =~ /email/ return :url if method.to_s =~ /^url$|^website$|_url$/ return :phone if method.to_s =~ /(phone|fax)/ return :search if method.to_s =~ /^search$/ + return :color if method.to_s =~ /color/ when :integer return :select if reflection_for(method) return :number when :float, :decimal return :number