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