Sha256: 83d92b996a7c25cd117e2b4feaa52cd6f3641db6c162c4f1300c7b0b2956fe33
Contents?: true
Size: 500 Bytes
Versions: 19
Compression:
Stored size: 500 Bytes
Contents
module Spree module Admin class SubscriptionEventsController < Spree::Admin::BaseController include RansackDateSearch ransack_date_searchable date_col: 'created_at' def index @search = Spree::SubscriptionEvent.ransack(params[:q]) @subscription_events = @search.result.includes(subscription: { plan: :recurring }).references(subscription: { plan: :recurring }).page(params[:page]).per(15) respond_with(@subscription_events) end end end end
Version data entries
19 entries across 19 versions & 1 rubygems