Created
November 5, 2014 21:26
-
-
Save cloke/fbfff95294d290ec8e90 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
executions: ( -> | |
ids = @get 'execution_ids' | |
return unless ids? and ids.length | |
_ids = @get '_ids' | |
# Prevent multiple calls to server for no reason. | |
return @get('_executions') if _ids && ids.toString() == _ids.toString() | |
@set '_ids', ids | |
_executions = @get('store').find 'execution', | |
ids: ids | |
limit: ids.length | |
sort: 'display_name' | |
@set '_executions', _executions | |
_executions | |
).property 'execution_ids' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment