Sha256: a3e422b0915d258f7326eb9d96cfb6d3ec8be92db99386bbc89d4bee0ce106b6

Contents?: true

Size: 351 Bytes

Versions: 45

Compression:

Stored size: 351 Bytes

Contents

class Spree::Api::StoreCreditEventsController < Spree::Api::BaseController
  def mine
    if current_api_user
      @store_credit_events = current_api_user.store_credit_events.exposed_events.page(params[:page]).per(params[:per_page]).reverse_chronological
    else
      render "spree/api/errors/unauthorized", status: :unauthorized
    end
  end
end

Version data entries

45 entries across 45 versions & 1 rubygems

Version Path
solidus_api-2.0.3 app/controllers/spree/api/store_credit_events_controller.rb
solidus_api-1.4.2 app/controllers/spree/api/store_credit_events_controller.rb
solidus_api-1.3.2 app/controllers/spree/api/store_credit_events_controller.rb
solidus_api-1.2.3 app/controllers/spree/api/store_credit_events_controller.rb
solidus_api-1.1.4 app/controllers/spree/api/store_credit_events_controller.rb
solidus_api-1.0.7 app/controllers/spree/api/store_credit_events_controller.rb
solidus_api-2.0.2 app/controllers/spree/api/store_credit_events_controller.rb
solidus_api-1.4.1 app/controllers/spree/api/store_credit_events_controller.rb
solidus_api-2.0.1 app/controllers/spree/api/store_credit_events_controller.rb
solidus_api-2.0.0 app/controllers/spree/api/store_credit_events_controller.rb
solidus_api-1.4.0 app/controllers/spree/api/store_credit_events_controller.rb
solidus_api-2.0.0.rc1 app/controllers/spree/api/store_credit_events_controller.rb
solidus_api-1.4.0.rc1 app/controllers/spree/api/store_credit_events_controller.rb
solidus_api-2.0.0.beta1 app/controllers/spree/api/store_credit_events_controller.rb
solidus_api-1.4.0.beta1 app/controllers/spree/api/store_credit_events_controller.rb
solidus_api-1.3.1 app/controllers/spree/api/store_credit_events_controller.rb
solidus_api-1.3.0 app/controllers/spree/api/store_credit_events_controller.rb
solidus_api-1.3.0.rc2 app/controllers/spree/api/store_credit_events_controller.rb
solidus_api-1.3.0.rc1 app/controllers/spree/api/store_credit_events_controller.rb
solidus_api-1.3.0.beta1 app/controllers/spree/api/store_credit_events_controller.rb