     targetObject = @get "targetObject"
     objects = @get('store').query targetObject, query
     objects.then (result) ->
-      that.set "meta", result.meta
-      # that.set "meta", total: 200
+      meta = result.meta
+      if result.links and result.meta.pagination
+        meta.total = result.meta.pagination.count
+        that.set 'isJsonApiPagination', true
+      that.set "meta", meta
     objects
   ).property  "version"
 

  objects: ( ->
    window.scrollTo 0, 0
    that = @
    query =
      limit: @get "limit"
      offset: @get "offset"
    extraQueryStrings = @get "extraQueryStrings"
    if !Ember.isEmpty extraQueryStrings
      extraQueries = JSON.parse extraQueryStrings

  version: 0
  extraQueryStrings: ""
  limit: ENV.paginate.perPageLimit
  isJsonApiPagination: false

  versionIncrementer: ->
    @incrementProperty "version"
