Skip to content

Instantly share code, notes, and snippets.

@itchy
Created June 18, 2014 04:44
Show Gist options
  • Save itchy/f45dc1f3ae65db70c1f5 to your computer and use it in GitHub Desktop.
Save itchy/f45dc1f3ae65db70c1f5 to your computer and use it in GitHub Desktop.

Revisions

  1. itchy created this gist Jun 18, 2014.
    1 change: 1 addition & 0 deletions background.rb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    system("bash", "-c", "cd #{Rails.root} && bundle exec rake tasks:regenerate['#{current_practice.id}'] &")