diff options
Diffstat (limited to 'app/serializers/service_field_entity.rb')
-rw-r--r-- | app/serializers/service_field_entity.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/serializers/service_field_entity.rb b/app/serializers/service_field_entity.rb index 9929d7e2e5a..08e08ae187f 100644 --- a/app/serializers/service_field_entity.rb +++ b/app/serializers/service_field_entity.rb @@ -11,6 +11,8 @@ class ServiceFieldEntity < Grape::Entity if field[:type] == 'password' && value.present? 'true' + elsif field[:type] == 'checkbox' + ActiveRecord::Type::Boolean.new.deserialize(value).to_s else value end |