class ActiveModel::Serializer

def serializable_hash

object without the root.
Returns a hash representation of the serializable
def serializable_hash
  instrument(:serialize, :serializer => self.class.name) do
    @node = attributes
    instrument :associations do
      include_associations! if _embed
    end
    @node
  end
end