Infer the step attr from the DB column type instead
This commit is contained in:
parent
b1b51c56f3
commit
56c2959bd7
|
@ -33,7 +33,7 @@ module SimpleForm
|
|||
|
||||
input_options[:min] ||= options[:greater_than_or_equal_to]
|
||||
input_options[:max] ||= options[:less_than_or_equal_to]
|
||||
input_options[:step] ||= options[:only_integer] && 1
|
||||
input_options[:step] ||= input_type == :integer && 1
|
||||
end
|
||||
|
||||
def find_numericality_validator(model_class)
|
||||
|
|
Loading…
Reference in New Issue