I often find myself writing code like:
::FullActivityRepresenter.prepare(full_activity).to_json(student: current_student)
or..
AttemptRepresenter.prepare(attempt).to_json(wrap: :attempt)
This gem looks great, but I can't seem to figure out an easy way to send data to the to_json method.
I would imagine some changes would need to happen here and here
Any ideas - if this is already possible - to how I can get this working?
I often find myself writing code like:
or..
This gem looks great, but I can't seem to figure out an easy way to send data to the
to_jsonmethod.I would imagine some changes would need to happen here and here
Any ideas - if this is already possible - to how I can get this working?