Sha256: c5a725143f9595f89c99a018cea4fe660a5ff21aa0c6ee9ff2399606c4091b3a
Contents?: true
Size: 669 Bytes
Versions: 2
Compression:
Stored size: 669 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 cache_sweeper :topbar_sweeper 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
redhat_access-2.0.1 | app/controllers/redhat_access/api/api_controller.rb |
redhat_access-2.0.0 | app/controllers/redhat_access/api/api_controller.rb |