There are params to permit:
{"string_value": "value","boolean_value": "true/false","other_value": "blabla"}
I need to convert the boolean_value
to Boolean like this ActiveRecord::Type::Boolean.new.deserialize
but when I permit params:
ActiveRecord::Type::Boolean.new.deserialize(params.permit(:boolean_value)[:boolean_value])
it doesn't work correctly because the result is always true
.How do I pass and permit this param correctly?