Sha256: e6e8efe9982a9091100bf5462285e118b8ca09f1143b6022027bb4f4bdd3fdb4
Contents?: true
Size: 488 Bytes
Versions: 4
Compression:
Stored size: 488 Bytes
Contents
class TaxonsController < Spree::BaseController resource_controller before_filter :load_data, :only => :show actions :show helper :products show.response do |wants| wants.html do render :template => 'products/index.html.erb' if @taxon.children.empty? end end private def load_data @products ||= object.products.available.find(:all, :page => {:start => 1, :size => 10, :current => params[:p]}, :include => :images) @product_cols = 3 end end
Version data entries
4 entries across 4 versions & 1 rubygems