Amador Cuenca Sun May 04 17:24:32 -0400 2014

Subject: Serialize function with parameter

Hi guys,

I'm trying to serialize a function with a parameter and I get a error. I saw the docs and says that I can serialize methods with no parameters.

What I want:

function Suscribed($userID) {
//look up on another table if the user is suscribed to the action.

then in my json I can get something like this:

{ id: 1, title: 'Something', Susbribed: false }