Skip to content

Instantly share code, notes, and snippets.

@oleander
Created July 18, 2010 19:46
Show Gist options
  • Save oleander/480655 to your computer and use it in GitHub Desktop.
Save oleander/480655 to your computer and use it in GitHub Desktop.
# New code(works):
Radio.delay.run_me
def run_me
Rake::Task["channels:update"].execute
end
# Old code(does not work):
Rake::Task["channels:update"].delay.execute
@oleander
Copy link
Author

I doesn't for some reason work to apply the delay method to Rake::Task
But it works to do the above

@varun43in
Copy link

what file is the above code in?

@oleander
Copy link
Author

oleander commented Mar 6, 2012

I've no idea, is was a while ago :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment