mirror of
https://github.com/internetee/registry.git
synced 2025-07-21 02:05:57 +02:00
Use comma as a default fraction separator
This commit is contained in:
parent
ebc2a6af72
commit
e375fcfabc
3 changed files with 11 additions and 2 deletions
|
@ -7,7 +7,7 @@ module FormHelper
|
|||
end
|
||||
|
||||
def money_field(object_name, method, options = {})
|
||||
options[:pattern] = '^[0-9.]+$' unless options[:pattern]
|
||||
options[:pattern] = '^[0-9.,]+$' unless options[:pattern]
|
||||
options[:maxlength] = 255 unless options[:maxlength]
|
||||
|
||||
text_field(object_name, method, options)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue