Skip to content

Instantly share code, notes, and snippets.

@ezotrank
Created August 13, 2013 10:29
Show Gist options
  • Save ezotrank/6219919 to your computer and use it in GitHub Desktop.
Save ezotrank/6219919 to your computer and use it in GitHub Desktop.
$scope.another_agencies = ->
return [] unless $scope.ticket
out = []
angular.forEach $scope.ticket.proposals(), ((proposal) ->
@push(
url: proposal.url()
id: proposal.gate.id
name: proposal.gate.label
productivity: proposal.gate.productivity
price: proposal._price
) if proposal.gate.id != $scope.gate_id
), out
out
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment