Sha256: 5e426edcf7815d9e845a33b8250656ab762cabb2dda0ed9ea5d81f2826cdf084

Contents?: true

Size: 632 Bytes

Versions: 16

Compression:

Stored size: 632 Bytes

Contents

require_dependency "redhat_access/application_controller"
module RedhatAccess
  module Api
    class ApiController < ApplicationController
      #skip_before_filter :verify_authenticity_token, :unless => :protect_api_from_forgery?
      #before_filter :set_default_response_format, :authorize, :add_version_header, :set_gettext_locale
      before_filter :session_expiry, :update_activity_time
      #around_filter :set_timezone

      respond_to :json

      def http_error_response(msg,status)
        render json: { :message => msg }, :status => status
      end

      def api_request?
        true
      end

    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
redhat_access-2.0.17 app/controllers/redhat_access/api/api_controller.rb
redhat_access-2.0.16 app/controllers/redhat_access/api/api_controller.rb
redhat_access-2.0.15 app/controllers/redhat_access/api/api_controller.rb
redhat_access-2.0.14 app/controllers/redhat_access/api/api_controller.rb
redhat_access-2.0.13 app/controllers/redhat_access/api/api_controller.rb
redhat_access-2.0.12 app/controllers/redhat_access/api/api_controller.rb
redhat_access-2.0.11 app/controllers/redhat_access/api/api_controller.rb
redhat_access-2.0.10 app/controllers/redhat_access/api/api_controller.rb
redhat_access-2.0.9 app/controllers/redhat_access/api/api_controller.rb
redhat_access-2.0.8 app/controllers/redhat_access/api/api_controller.rb
redhat_access-2.0.7 app/controllers/redhat_access/api/api_controller.rb
redhat_access-2.0.6 app/controllers/redhat_access/api/api_controller.rb
redhat_access-2.0.5 app/controllers/redhat_access/api/api_controller.rb
redhat_access-2.0.4 app/controllers/redhat_access/api/api_controller.rb
redhat_access-2.0.3 app/controllers/redhat_access/api/api_controller.rb
redhat_access-2.0.2 app/controllers/redhat_access/api/api_controller.rb