Rev.appModel 'Conversation', class Conversations extends Rev.Model url: -> if @id? then "/conversations/#{@id}" else "/conversations" Rev.appObject 'Collections.Conversations', class ConversationCollection extends Rev.Collection model: App.Models.Conversation url: "/conversations"