Sha256: 20b4d560a49007d3fd929b0234b599c78e9f2608b19254ec8936799b5fbba109

Contents?: true

Size: 615 Bytes

Versions: 14

Compression:

Stored size: 615 Bytes

Contents

class Spree::Admin::StoresController < Spree::Admin::ResourceController

  before_filter :load_payment_methods
  before_filter :load_shipping_methods

  def index
    @stores = @stores.ransack({ name_or_domains_or_code_cont: params[:q] }).result if params[:q]
    @stores = @stores.where(id: params[:ids].split(',')) if params[:ids]

    respond_with(@stores) do |format|
      format.html
      format.json
    end
  end

  private
    def load_payment_methods
      @payment_methods = Spree::PaymentMethod.all
    end

    def load_shipping_methods
      @shipping_methods = Spree::ShippingMethod.all
    end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
solidus_multi_domain-1.5.0 app/controllers/spree/admin/stores_controller.rb
solidus_multi_domain-1.4.3 app/controllers/spree/admin/stores_controller.rb
solidus_multi_domain-1.4.2 app/controllers/spree/admin/stores_controller.rb
solidus_multi_domain-1.4.1 app/controllers/spree/admin/stores_controller.rb
solidus_multi_domain-1.4.0 app/controllers/spree/admin/stores_controller.rb
solidus_multi_domain-1.3.0 app/controllers/spree/admin/stores_controller.rb
solidus_multi_domain-1.2.0 app/controllers/spree/admin/stores_controller.rb
solidus_multi_domain-1.1.3 app/controllers/spree/admin/stores_controller.rb
solidus_multi_domain-1.1.2 app/controllers/spree/admin/stores_controller.rb
solidus_multi_domain-1.1.1 app/controllers/spree/admin/stores_controller.rb
solidus_multi_domain-1.0.3 app/controllers/spree/admin/stores_controller.rb
solidus_multi_domain-1.1.0 app/controllers/spree/admin/stores_controller.rb
solidus_multi_domain-1.0.1 app/controllers/spree/admin/stores_controller.rb
solidus_multi_domain-1.0.0 app/controllers/spree/admin/stores_controller.rb