class ActionController::Parameters

def permitted_scalar?(value)

def permitted_scalar?(value)
  PERMITTED_SCALAR_TYPES.any? { |type| value.is_a?(type) }
end