Skip to content

Commit

Permalink
Handle parsing of jsonb
Browse files Browse the repository at this point in the history
  • Loading branch information
mattwr18 committed Nov 20, 2024
1 parent ccc4c3c commit ca1873b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/models/organization.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ def onboarding_allowed=(value)
self[:onboarding_allowed] = value.is_a?(String) ? JSON.parse(value) : value
end

def whats_app_quick_reply_button_text=(value)
self[:whats_app_quick_reply_button_text] = value.is_a?(String) ? JSON.parse(value) : value
end

def whats_app_configured?
twilio_configured? || three_sixty_dialog_configured?
end
Expand Down

0 comments on commit ca1873b

Please sign in to comment.