I have the model \"Organization\" that stores all information related to an organization. There is a field of type JSONB named \"integrations\" that stores information pertainin
I was looking for the same thing. As @twonegatives indicated, store_accessor won't help us. But I did find the #dig method to work pretty well for getting the data. So...
#somewhere in Organization model
def api_key
integrations.dig("mailchimp", "api_key")
end
def username
integrations.dig("sendgrid", "username")
end