rfs / validates_cpf_cnpj

CPF and CNPJ validations for ActiveModel and Rails
35 stars 21 forks source link

Preventing error for trying to modify a frozen string. #11

Closed allam-matsubara closed 7 years ago

allam-matsubara commented 7 years ago

This line were triggering an error for trying to modify a frozen string. Since it's nor necessary to change the string object itself, we can just store the value in another variable.

allam-matsubara commented 7 years ago

https://github.com/rfs/validates_cpf_cnpj/pull/5