fabrik42/acts_as_api — Issue #56: ActiveRecord dependency?
Author: robj
Created: 2012-01-22 13:58:35+00:00
State: open

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