Sha256: ba881654f9ca80b25d05371e376a85a1c837f643830b845b0f6dbe4e681a3f3d

Contents?: true

Size: 427 Bytes

Versions: 5

Compression:

Stored size: 427 Bytes

Contents

module Spree
  module Admin
    class BlingProductsController < ResourceController

      def update
        account = SolidusBling::Account.find(params[:id])
        SolidusBling::UpdateProductJob.perform_later(account)
        flash[:success] = "Baixando produtos"
        redirect_to edit_admin_account_path(account)
      end

      private

      def model_class
        SolidusBling::Account
      end

    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
solidus_bling-2.0.7 app/controllers/spree/admin/bling_products_controller.rb
solidus_bling-2.0.6 app/controllers/spree/admin/bling_products_controller.rb
solidus_bling-2.0.5 app/controllers/spree/admin/bling_products_controller.rb
solidus_bling-2.0.4 app/controllers/spree/admin/bling_products_controller.rb
solidus_bling-2.0.3 app/controllers/spree/admin/bling_products_controller.rb