How call parent method from ApplicationAdapter?


#1

I want to generate URL for server side processing datatables. My code:

Ela.ApplicationAdapter = DS.ActiveModelAdapter.extend
    namespace: 'api/v1',
    buildDatatablesURL: (modelName)->
      @namespace + @buildURL(modelName) + '/datatables'

and

Ela.PagesIndexRoute = Ember.Route.extend
  model: ->
    @store.findAll('page')
  setupController: (controller)->
    controller.set('datatablesUrl', Ela.ApplicationAdapter.create().get('buildDatatablesURL')('Page'))

but “this.buildURL is not a function”.

Or perhaps somebody will suggest better way to generate URL?