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

Version Path
spree_account_recurring-2.0.0 app/controllers/spree/admin/subscription_events_controller.rb
spree_account_recurring-1.3.1 app/controllers/spree/admin/subscription_events_controller.rb
spree_account_recurring-1.2.1 app/controllers/spree/admin/subscription_events_controller.rb
spree_account_recurring-1.3.0 app/controllers/spree/admin/subscription_events_controller.rb
spree_account_recurring-1.2.0 app/controllers/spree/admin/subscription_events_controller.rb
spree_account_recurring-1.1.5 app/controllers/spree/admin/subscription_events_controller.rb
spree_account_recurring-1.0.7 app/controllers/spree/admin/subscription_events_controller.rb
spree_account_recurring-1.1.4 app/controllers/spree/admin/subscription_events_controller.rb
spree_account_recurring-1.0.6 app/controllers/spree/admin/subscription_events_controller.rb
spree_account_recurring-1.0.5 app/controllers/spree/admin/subscription_events_controller.rb
spree_account_recurring-1.1.3 app/controllers/spree/admin/subscription_events_controller.rb
spree_account_recurring-1.1.2 app/controllers/spree/admin/subscription_events_controller.rb
spree_account_recurring-1.0.4 app/controllers/spree/admin/subscription_events_controller.rb
spree_account_recurring-1.0.3 app/controllers/spree/admin/subscription_events_controller.rb
spree_account_recurring-1.0.2 app/controllers/spree/admin/subscription_events_controller.rb
spree_account_recurring-1.1.1 app/controllers/spree/admin/subscription_events_controller.rb
spree_account_recurring-1.1.0 app/controllers/spree/admin/subscription_events_controller.rb
spree_account_recurring-1.0.1 app/controllers/spree/admin/subscription_events_controller.rb
spree_account_recurring-1.0.0 app/controllers/spree/admin/subscription_events_controller.rb