mirror of
https://github.com/heartcombo/simple_form.git
synced 2022-11-09 12:19:26 -05:00
Infer the step attr from the DB column type instead
This commit is contained in:
parent
b1b51c56f3
commit
56c2959bd7
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue