Probably not <:)
My example work-flow is:
- user logs into customer.tld/login (Devise handles this)
- user views products at customer.tld/products
- user makes a price mark-up on products of category A with a POST to customer.tld/products/markup?category=A&markup=2.5
- Product.where(category: params[:category]).each{ |p| p.markup(params[:markup] }
Where in this flow would I configure my Shopify::Session - application_controller.rb, product.rb, config/initializers/shopify.rb?
Second example:
In a background job running every morning at 5 minutes to 8 - Order.pickup_new_shopify_orders will 'run' and eventually process new orders, build picklists for handlers in the warehouse and prepare a list of links for case officers in sales to click on - eventually allowing them to mark delivered orders as shipped once picklists starts pouring in from the warehouse handlers after packaging and sign off to carrier is completed.
Will my Order.pickup_new_shopify_orders have its own Session setup - in order.rb?
Sorry to be such a pain the a.. <:(