Sha256: 35e70695ed584e8599337514455192dbd45e9f9bfd95bf016da4736d528159d2
Contents?: true
Size: 799 Bytes
Versions: 41
Compression:
Stored size: 799 Bytes
Contents
# frozen_string_literal: true module Spree module Admin class PricesController < ResourceController belongs_to 'spree/product', find_by: :slug def index params[:q] ||= {} @search = @product.prices.kept.accessible_by(current_ability, :index).ransack(params[:q]) @master_prices = @search.result .currently_valid .for_master .order(:variant_id, :country_iso, :currency) .page(params[:page]).per(Spree::Config.admin_variants_per_page) @variant_prices = @search.result .currently_valid .for_variant .order(:variant_id, :country_iso, :currency) .page(params[:variants_page]).per(Spree::Config.admin_variants_per_page) end def edit end end end end
Version data entries
41 entries across 41 versions & 1 rubygems