Closed carlesjove closed 9 years ago
This generates wrong output, where only email is included:
email
class UserSerializer < CollectionJson::Serializer template email: { prompt: "Your email" }, password: { prompt: "Your password" } end
This generates output as expected:
class UserSerializer < CollectionJson::Serializer template :email, password: { prompt: "Your password" } end
This generates an error:
class UserSerializer < CollectionJson::Serializer template email: { prompt: "Your email" }, :password end
This generates wrong output, where only
email
is included:This generates output as expected:
This generates an error: