Created
          December 24, 2016 19:13 
        
      - 
      
- 
        Save bleonard/a2961ad726eee34b0836323cb9f12564 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
    
  
  
    
  | subscribe "task_changed", "bus_event_type" => "task_changed" do |attributes| | |
| if attributes["state"] == 'opened' | |
| TaskIndex.write(attributes["id"]) | |
| end | |
| end | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment