Sign in through GitHub

RailsCasts Pro episodes are now free!

Learn more or hide this

Brad Pardee's Profile

GitHub User: bpardee

Comments by Brad Pardee

Avatar

For version 0.9 and above, the json_for should change from:

target.active_model_serializer.new(target, options).to_json

to

ActiveModel::Serializer.serializer_for(target).new(target, options).to_json