Sha256: 7ced492e35e92d3eab58d87d378fdd9265c22a42eb6e58d5abf86ad8f1604214
Contents?: true
Size: 553 Bytes
Versions: 2
Compression:
Stored size: 553 Bytes
Contents
module Spree module Admin class QuestionsController < ResourceController def index respond_with(@collection) do |format| format.html format.json { render :json => json_data } end end protected def find_resource Question.find_by_slug!(params[:id]) end def collection return @collection if @collection.present? @search = Spree::Question.search(params[:q]) @collection = @search.result.page(params[:page]).per(20) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
spree_grid_faq-0.0.8 | app/controllers/spree/admin/questions_controller.rb |
spree_grid_faq-0.0.7 | app/controllers/spree/admin/questions_controller.rb |