Skip to content

Instantly share code, notes, and snippets.

@onedanshow
Created August 15, 2014 19:37
Show Gist options
  • Save onedanshow/956fda2687e0791deca8 to your computer and use it in GitHub Desktop.
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
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