Sha256: 15218bc9b276226f0012b0a4b86d6373eeebe2d676257a87f62280f022a247d9
Contents?: true
Size: 445 Bytes
Versions: 19
Compression:
Stored size: 445 Bytes
Contents
module Spree module Admin class SubscriptionsController < Spree::Admin::BaseController include RansackDateSearch ransack_date_searchable date_col: 'subscribed_at' def index @search = Spree::Subscription.ransack(params[:q]) @subscriptions = @search.result.includes(plan: :recurring).references(plan: :recurring).page(params[:page]).per(15) respond_with(@subscriptions) end end end end
Version data entries
19 entries across 19 versions & 1 rubygems