• nicolasdular's avatar
    Fix encoding issue with enums · 50dd6fbf
    nicolasdular authored
    Using the result from `build_from_database` and passing it to
    the `attributes` from init_with` was not sufficent to decode enums
    correctly. Since `init_with` is guaranteed to work with `encode_with`,
    this MR uses now `encode_with` instead to fix the encoding issue.
    50dd6fbf
json_cache_spec.rb 16.3 KB