Sha256: fa86671c6fa1fe9c805b8899fd36c834cfd88f31c78ea52003fcc8628c06c6be
Contents?: true
Size: 346 Bytes
Versions: 1
Compression:
Stored size: 346 Bytes
Contents
Spree::ProductsController.prepend(Module.new do class << self def prepended(klass) klass.respond_to :rss, only: :index end end def index load_feed_products if request.format.rss? super end private def load_feed_products @feed_products = Spree::Product.all.map(&Spree::FeedProduct.method(:new)) end end)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
solidus_product_feed-1.0.0 | app/controllers/spree/products_controller_decorator.rb |