Project

General

Profile

Bug #17087

Updated by Ori Rabin over 7 years ago

Sending When default_value as is a string/integer/bool it works but when it's a hash/array fails through it doesn't. 
 In the api but UI the value is turned into yaml before it reaches the controller so it's accepted. 
 This looks related to strong params, the way default_value appears in the filter doesn't give any error message. 
 Sending: 
 <pre> 
 "default_value": "['a','b']" 
 </pre> 
 will work but 
 <pre> 
 "default_value": ['a','b'] 
 </pre> 
 will fail with no error message allow a hash/array value.

Back