             Setter.merge({doc: collection.findOne(_id: @params._id)}, args.data, args.editData)
 
   getBaseController: -> BaseController
-

    editRoute = args.editRoute ? singularName + 'Edit'
    formName = args.formName ? singularName + 'Form'
    Logger.debug('CRUD Routes', createRoute, editRoute, formName)
    
    # Avoid creating a duplicate route for the collection if one already exists.
    unless Router.routes[collectionId]?
      Router.route collectionId,

      onBeforeAction: ->
        return unless @ready()
        @next()
      action: -> @render() if @ready()

    Router.getCurrentName = -> Router.current()?.route?.getName()
    Router.getReactiveCurrentName = -> reactiveCurrentName.get()
