mirror of
https://github.com/internetee/registry.git
synced 2025-05-16 17:37:17 +02:00
Added comma support #2785
This commit is contained in:
parent
f5311301c9
commit
e9cf3d2fbe
15 changed files with 80 additions and 21 deletions
|
@ -70,4 +70,10 @@ class ApplicationController < ActionController::Base
|
|||
return 'public' if user.nil?
|
||||
"#{user.id}-#{user.class}: #{user.username}"
|
||||
end
|
||||
|
||||
def comma_support_for(parent_key, key)
|
||||
return if params[parent_key].blank?
|
||||
return if params[parent_key][key].blank?
|
||||
params[parent_key][key].sub!(/,/, '.')
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue