Added comma support #2785

This commit is contained in:
Priit Tark 2015-08-10 20:04:20 +03:00
parent f5311301c9
commit e9cf3d2fbe
15 changed files with 80 additions and 21 deletions

View file

@ -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