Created
August 15, 2014 19:37
-
-
Save onedanshow/956fda2687e0791deca8 to your computer and use it in GitHub Desktop.
Rake task to set back Spree::Order push timestamp by 12 hours for wombat.co
This file contains 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 :wombat do | |
desc "Push back Spree::Order push timestamp by 12 hours" | |
task reset_order_timestamp: :environment do | |
timestamps = Spree::Wombat::Config[:last_pushed_timestamps] | |
timestamps["Spree::Order"] = 12.hours.ago | |
Spree::Wombat::Config[:last_pushed_timestamps] = timestamps | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment