We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
class Bar < ActiveRecord::Base serialize :foo # serialize :foo, Hash <--- add Hash not make any different end
hash = {a: 0.0.to_d} # Decimal bar = Bar.new bar.foo = hash bar.foo #<-------- it return {":a"=>1080.0} OMG
Need to add SafeYAML::OPTIONS[:whitelisted_tags] = ["!ruby/object:BigDecimal"]
SafeYAML::OPTIONS[:whitelisted_tags] = ["!ruby/object:BigDecimal"]
Anyway, this year 2014 gem really useful nowadays?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Need to add
SafeYAML::OPTIONS[:whitelisted_tags] = ["!ruby/object:BigDecimal"]
Anyway, this year 2014 gem really useful nowadays?
The text was updated successfully, but these errors were encountered: