Feature: Add default value to ChatForm (#816)

* Feature: Add adefault value to ChatForm
This commit is contained in:
Pranav Raj S
2020-05-04 23:48:47 +05:30
committed by GitHub
parent 5bc8219db5
commit 44fae4a4a1
2 changed files with 25 additions and 11 deletions

View File

@@ -2,7 +2,7 @@ class ContentAttributeValidator < ActiveModel::Validator
ALLOWED_SELECT_ITEM_KEYS = [:title, :value].freeze
ALLOWED_CARD_ITEM_KEYS = [:title, :description, :media_url, :actions].freeze
ALLOWED_CARD_ITEM_ACTION_KEYS = [:text, :type, :payload, :uri].freeze
ALLOWED_FORM_ITEM_KEYS = [:type, :placeholder, :label, :name, :options].freeze
ALLOWED_FORM_ITEM_KEYS = [:type, :placeholder, :label, :name, :options, :default].freeze
ALLOWED_ARTICLE_KEYS = [:title, :description, :link].freeze
def validate(record)