Sha256: d9a74d65eed0898bf89b47755b289852b1303e281a956a27e4d9fb629ccdd251

Contents?: true

Size: 503 Bytes

Versions: 1

Compression:

Stored size: 503 Bytes

Contents

Volontariat.CommunityCategoriesRoute = Ember.Route.extend
  model: (params) ->
    @controllerFor('community.categories').set 'communitySlug', @modelFor('community').slug
    @controllerFor('community.categories').set 'page', parseInt(params.page)

    @store.query 'community_category', community_slug: @modelFor('community').slug, page: params.page
    
  setupController: (controller, model) ->
    controller.send('goToPageWithoutRedirect', controller.get('page'))
    controller.set('model', model)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
voluntary_feedback-0.1.0 app/assets/javascripts/voluntary_feedback/routes/community/categories_route.js.coffee