josevalim/active_model_serializers — Issue #44: Is the existence of 'current_user' mandatory?
Author: raulbrito
Created: 2012-02-23 19:55:12+00:00
State: open

I'm creating a Rails app from scratch and still don't have any authentication mechanism in place.
I had to specify a current_user method in the controller in order to produce json from the active_model_serializer, otherwise i get an exception:

NoMethodError in EntriesController#index

undefined method `current_user' for #