Created
July 27, 2014 21:42
-
-
Save christopherstyles/6f85a8a7f02d40d1965f to your computer and use it in GitHub Desktop.
Calling services from a rake task
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
| namespace :archive do | |
| task :users do | |
| users.each do |user| | |
| UnsubscribeUserFromList.call(user) | |
| ArchiveUserComments.call(user) | |
| end | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment