Sha256: 7498776dbacf10f390c713a8ce1c6f959960906dc33042c95e2127c3b9edabca

Contents?: true

Size: 339 Bytes

Versions: 2

Compression:

Stored size: 339 Bytes

Contents

#TODO -> Rspecs missing
#TODO -> Add description of this rake task in README and also tell them to create a cron job for this.
namespace :spree do
  namespace :loyalty_points do
    desc "Credit loyalty points to pending users accounts"
    task :award => :environment do
      Spree::Order.credit_loyalty_points_to_user
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
spree_loyalty_points-1.0.1 lib/tasks/loyalty_points/award.rake
spree_loyalty_points-1.0.0 lib/tasks/loyalty_points/award.rake