cancan/lib/cancan.rb
2010-04-16 08:55:36 -07:00

15 lines
446 B
Ruby

module CanCan
# A general CanCan exception
class Error < StandardError; end
# This error is raised when a user isn't allowed to access a given
# controller action. See ControllerAdditions#unauthorized! for details.
class AccessDenied < Error; end
end
require 'cancan/ability'
require 'cancan/controller_resource'
require 'cancan/resource_authorization'
require 'cancan/controller_additions'
require 'cancan/active_record_additions'