Skip to content

Get original JSONB attribute hash #7

Description

@ChristianClassen

Hello,

first of all, thanks for this great gem!

I would like to know, if there is a way to simply get back the whole data hash and not just a localized version of the nested content when reading a JSONB attribute?

Example:

# I18n.locale = :en
# Currently
Post.first.description #=> "Hello World"

# I need the whole JSONB hash
Post.first.description #=> {'en': 'Hello World', 'de': 'Hallo Welt'}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions