Module: RabbitCageACL

Defined in:
lib/rabbitcage/filter.rb

Instance Method Summary collapse

Instance Method Details

#allow(user, action, object, properties = {}) ⇒ Object



4
5
6
# File 'lib/rabbitcage/filter.rb', line 4

def allow user, action, object, properties = {}
  RabbitCage::Filter.register :allow, user, action, object, properties 
end

#default(action) ⇒ Object



11
12
13
# File 'lib/rabbitcage/filter.rb', line 11

def default action
  RabbitCage::Filter.set_default(action)
end

#deny(user, action, object, properties = {}) ⇒ Object



7
8
9
# File 'lib/rabbitcage/filter.rb', line 7

def deny user, action, object, properties = {}
  RabbitCage::Filter.register :deny, user, action, object, properties 
end