module Aclize::ClassMethods

The ClassMethods module will implement the methods that we want to be accessible as class methods. This will permit to setup callbacks to execute on unauthorized access.

Public Instance Methods

aclized?() click to toggle source
# File lib/aclize.rb, line 18
def aclized?
  true
end
if_unauthorized(&block) click to toggle source
# File lib/aclize.rb, line 22
def if_unauthorized(&block)
  if block_given?
    before_filter do
      register_callback(&block)
    end
  end
end