Skip to content

Instantly share code, notes, and snippets.

View welingtonsampaio's full-sized avatar

Welington Sampaio welingtonsampaio

View GitHub Profile
class CheckNotazzQty
# attr_reader :orders
attr_reader :order
def initialize(order)
# @orders = Spree::Order.s_complete.where.not(notazz_id: nil)
@order = order #s.order("RAND()").first
@l = Logger.new(Rails.root.join("log/nf.log"))
end