G5 / storext

Add type-casting and other features on top of ActiveRecord::Store.store_accessor

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Empty string is converted to nil automatically

ldlgds2 opened this issue · comments

When extracting data from JSONb where the values are the empty string, e.g. "", the gem will return them as nil into Rails.

@ldlgds2, ok it should return them as blank strings too, I agree.

I couldn't replicate the issue in a spec. Please see jsonb-blank-string-49 branch

@ramontayag : Maraming salamat po :)
I will check with my former team another time and get back to you ASAP about this issue. Maybe there also was a DB or gem conflict issue.