Created
July 18, 2010 19:46
-
-
Save oleander/480655 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
| # 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 |
what file is the above code in?
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
I doesn't for some reason work to apply the delay method to Rake::Task
But it works to do the above