RailsCasts Pro episodes are now free!

Learn more or hide this

Eran Kampf's Profile

GitHub User: ekampf

Site: http://www.developerzen.com

Comments by Eran Kampf

Avatar

How would you handle overriding the as_json method for a Polymorphic model?

Once I try to override the query changes to :

... items.type IN ('Api::V1::ProjectsController::Project') ...