Allow ,
and
as decimal part delimiter for AR's float typecasting from string.
# Gemfile
gem "numeric_nation_input"
class TestModel < ActiveRecord::Base
attr_accessible :attr1, :attr2
numeric_nation_input :attr1, :attr2
end
model = TestModel.new(attr1: "1 025,45")
model.attr1 #=> 1025.45 (Float)