Skip to content

Instantly share code, notes, and snippets.

@tobiaszwaszak
Created March 20, 2015 11:46
Show Gist options
  • Save tobiaszwaszak/fefbb72b10c20997eb03 to your computer and use it in GitHub Desktop.
Save tobiaszwaszak/fefbb72b10c20997eb03 to your computer and use it in GitHub Desktop.

Revisions

  1. tobiaszwaszak created this gist Mar 20, 2015.
    2 changes: 2 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@
    app.run (Rails, $state) ->
    $state.go(Rails.organization.home_page) if $state.current.name == 'info_center'
    4 changes: 4 additions & 0 deletions gistfile2.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    app.run (Rails, $state, $timeout) ->
    $timeout (->
    $state.go(Rails.organization.home_page) if $state.current.name == 'info_center'
    ), 2000