Sha256: f87ee6d1798288a80f99fac181a04d5cd560769d776fd9663fcb991bb7c119fe

Contents?: true

Size: 307 Bytes

Versions: 1

Compression:

Stored size: 307 Bytes

Contents

Volontariat.NewCommunityRoute = Ember.Route.extend
  model: (params) ->
    if Volontariat.User.current()
      Ember.$.getJSON(
        "/api/v1/users/#{Volontariat.User.current().id}/organizations.json"
      ).then (json) =>
        @controllerFor('new_community').set 'organizations', json.organizations

Version data entries

1 entries across 1 versions & 1 rubygems

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