diff options
Diffstat (limited to 'app/models/integrations/field.rb')
-rw-r--r-- | app/models/integrations/field.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/models/integrations/field.rb b/app/models/integrations/field.rb index 9dc90629344..324848daf4f 100644 --- a/app/models/integrations/field.rb +++ b/app/models/integrations/field.rb @@ -6,7 +6,7 @@ module Integrations ATTRIBUTES = %i[ section type placeholder choices value checkbox_label - title help if + title help if description non_empty_password_help non_empty_password_title ].concat(BOOLEAN_ATTRIBUTES).freeze @@ -60,6 +60,10 @@ module Integrations define_method("#{type}?") { self[:type] == type } end + def api_type + checkbox? ? ::API::Integrations::Boolean : String + end + private attr_reader :attributes |