Skip to content

Instantly share code, notes, and snippets.

@cantin
Created August 20, 2012 03:14
Show Gist options
  • Save cantin/3400000 to your computer and use it in GitHub Desktop.
Save cantin/3400000 to your computer and use it in GitHub Desktop.
namespace :book_item do
task :free_all_if_due => :environment do
Book.free_book_items_if_due
puts 'Free the due book_item successfully'
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment