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