Module: CanTango::CanCan::RuleClass

Defined in:
lib/cantango/can_can/rule_class.rb

Instance Method Summary collapse

Instance Method Details

#rule_classObject

CanCan 1.5 compatibility



8
9
10
11
12
# File 'lib/cantango/can_can/rule_class.rb', line 8

def rule_class
  return ::CanCan::Rule if defined? ::CanCan::Rule
  return ::CanCan::CanDefinition if defined? ::CanCan::CanDefinition
  raise "CanCan has changed the Rule class and CanTango is not yet compatible with this change!"
end