Sha256: f8bf34cdd8211ccc35669c317e774e513c410d58084b9bff0043e2d3d3e9cf78

Contents?: true

Size: 236 Bytes

Versions: 3

Compression:

Stored size: 236 Bytes

Contents

module Spree
  HomeController.class_eval do
    include Spree::ActiveSalesHelper

    # List live and active sales on home page
    def index
      @sale_events = all_active_sale_events
      respond_with(@sale_events)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
spree_active_sale-2.0.0 app/controllers/spree/home_controller_decorator.rb
spree_active_sale-1.3.2 app/controllers/spree/home_controller_decorator.rb
spree_active_sale-1.3.1 app/controllers/spree/home_controller_decorator.rb