Skip to content

Commit

Permalink
Use the "number" type for numeric fields
Browse files Browse the repository at this point in the history
  • Loading branch information
knu committed Jul 5, 2023
1 parent 9da8fd5 commit e0dd4c0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/models/agents/delay_agent.rb
Expand Up @@ -31,10 +31,10 @@ def default_options
}
end

form_configurable :expected_receive_period_in_days, type: :string
form_configurable :max_events, type: :string
form_configurable :expected_receive_period_in_days, type: :number, html_options: { min: 1 }
form_configurable :max_events, type: :number, html_options: { min: 1 }
form_configurable :keep, type: :array, values: %w[newest oldest]
form_configurable :max_emitted_events, type: :string
form_configurable :max_emitted_events, type: :number, html_options: { min: 0 }
form_configurable :events_order, type: :json

def validate_options
Expand Down

0 comments on commit e0dd4c0

Please sign in to comment.