Sha256: afdbc87aa21fa715a9a3720e56403425b8ab0b1e291252e297642450c0fa2934

Contents?: true

Size: 306 Bytes

Versions: 9

Compression:

Stored size: 306 Bytes

Contents

module Api
  class DummyController < ApplicationController
    class << self; attr_accessor :last_action, :last_params end

    def dummy(action_name = :dummy)
      self.class.last_action = action_name
      self.class.last_params = params
      render :json => { :head => :no_content }
    end
  end
end

Version data entries

9 entries across 9 versions & 3 rubygems

Version Path
openstax_exchange-0.0.0 spec/dummy/app/controllers/api/dummy_controller.rb
openstax_accounts-2.0.0 spec/dummy/app/controllers/api/dummy_controller.rb
openstax_accounts-1.0.0 spec/dummy/app/controllers/api/dummy_controller.rb
openstax_accounts-0.3.0 spec/dummy/app/controllers/api/dummy_controller.rb
openstax_accounts-0.3 spec/dummy/app/controllers/api/dummy_controller.rb
openstax_accounts-0.2.1 spec/dummy/app/controllers/api/dummy_controller.rb
openstax_accounts-0.2.0 spec/dummy/app/controllers/api/dummy_controller.rb
openstax_accounts-0.1.0 spec/dummy/app/controllers/api/dummy_controller.rb
openstax_connect-0.1.0 spec/dummy/app/controllers/api/dummy_controller.rb