Module: CanTango::Rules::RuleClass

Included in:
UserRelation
Defined in:
lib/cantango/rules/rule_class.rb

Instance Method Summary collapse

Instance Method Details

#rule_classObject

CanCan 1.5 compatibility



5
6
7
8
# File 'lib/cantango/rules/rule_class.rb', line 5

def rule_class
  return CanCan::Rule if defined? CanCan::Rule
  CanCan::CanDefinition
end