Sha256: 3a76efa70b36f9507ea23ae0a56ac0040bc4642405ed8be54ddb0ce8d3a0e486
Contents?: true
Size: 410 Bytes
Versions: 8
Compression:
Stored size: 410 Bytes
Contents
require 'cancan' require 'cancan/rule' module CanTango module CanCan module RuleClass # CanCan 1.5 compatibility 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 end end end
Version data entries
8 entries across 8 versions & 1 rubygems