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

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