2012-07-31 08:35:27 +01:00
|
|
|
# -*- encoding : utf-8 -*-
|
|
|
|
class Api::V1::BaseController < ApplicationController
|
2012-10-14 13:00:49 +01:00
|
|
|
include Api::V1::BaseHelper
|
2012-09-26 18:15:11 +01:00
|
|
|
#respond_to :json
|
2012-08-31 13:23:44 +01:00
|
|
|
|
2012-09-27 13:13:59 +01:00
|
|
|
rescue_from CanCan::AccessDenied do |exception|
|
|
|
|
respond_to do |format|
|
|
|
|
format.json { render :json => {:message => t("flash.exception_message")}.to_json, :status => 403 }
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2012-07-31 08:35:27 +01:00
|
|
|
end
|