Sha256: dc9ab54650af734a64cbb2bc7147a51b5ed20b0cd020e8210c11f0db145fe5af

Contents?: true

Size: 334 Bytes

Versions: 26

Compression:

Stored size: 334 Bytes

Contents

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

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
solidus_api-2.5.2 app/controllers/spree/api/store_credit_events_controller.rb
solidus_api-2.5.1 app/controllers/spree/api/store_credit_events_controller.rb
solidus_api-2.5.0 app/controllers/spree/api/store_credit_events_controller.rb
solidus_api-2.5.0.rc1 app/controllers/spree/api/store_credit_events_controller.rb
solidus_api-2.5.0.beta2 app/controllers/spree/api/store_credit_events_controller.rb
solidus_api-2.5.0.beta1 app/controllers/spree/api/store_credit_events_controller.rb
solidus_api-2.4.2 app/controllers/spree/api/store_credit_events_controller.rb
solidus_api-2.4.1 app/controllers/spree/api/store_credit_events_controller.rb
solidus_api-2.3.1 app/controllers/spree/api/store_credit_events_controller.rb
solidus_api-2.2.2 app/controllers/spree/api/store_credit_events_controller.rb
solidus_api-2.1.1 app/controllers/spree/api/store_credit_events_controller.rb
solidus_api-2.4.0 app/controllers/spree/api/store_credit_events_controller.rb
solidus_api-2.4.0.rc1 app/controllers/spree/api/store_credit_events_controller.rb
solidus_api-2.4.0.beta1 app/controllers/spree/api/store_credit_events_controller.rb
solidus_api-2.3.0 app/controllers/spree/api/store_credit_events_controller.rb
solidus_api-2.3.0.rc3 app/controllers/spree/api/store_credit_events_controller.rb
solidus_api-2.3.0.rc2 app/controllers/spree/api/store_credit_events_controller.rb
solidus_api-2.3.0.rc1 app/controllers/spree/api/store_credit_events_controller.rb
solidus_api-2.3.0.beta1 app/controllers/spree/api/store_credit_events_controller.rb
solidus_api-2.2.1 app/controllers/spree/api/store_credit_events_controller.rb