ActiveRecord dependency?
robj opened this issue · 4 comments
robj commented
I use Mongoid and do not have AR loaded
format.json { render_for_api :v1_public, :json => [@user] }
works fine
however,
format.json { render_for_api :v1_public, :json => @user }
(without @user in an array) gives an error
uninitialized constant ActiveRecord::Relation
robj commented
as a workaround, I can do this for now
format.json { render :json => @user.as_api_response(:v1_public).to_json }
fabrik42 commented
Which version of acts_as_api are you using?
Can you try to update your bundle and tell me if the problem still exists?
robj commented
Im using
acts_as_api (0.3.11)
and have tried updating the bundle to no avail
fabrik42 commented
Closing this for now. Please re-open if issue is still present.