Sha256: a2af8915fcba2342820c567068b6fba1708530cb44be081df2b2274a416fe70a

Contents?: true

Size: 240 Bytes

Versions: 3

Compression:

Stored size: 240 Bytes

Contents

module MasterApiKey
  class ApplicationController < ActionController::Base
    protect_from_forgery with: :exception

    protected

    def respond_with_error(msg, error)
      render json: {:error => msg}, status: error
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
master_api_key-2.0.1 app/controllers/master_api_key/application_controller.rb
master_api_key-1.2.0 app/controllers/master_api_key/application_controller.rb
master_api_key-1.1.1 app/controllers/master_api_key/application_controller.rb