Sha256: c5467a9da6e8ff8ece0f9660971f68f729b4c60b804d94753d9f53f602f8071b
Contents?: true
Size: 462 Bytes
Versions: 1
Compression:
Stored size: 462 Bytes
Contents
# ensures compatibility with CanCan 1.5+ and 1.4- module CanTango module PermitEngine module Compatibility def rules return rules_1_5 if rules_1_5 return rules_1_4 if rules_1_4 raise "CanCan ability.rules could not be found. Possibly due to CanCan API change since 1.5" end def rules_1_5 ability.send :rules end def rules_1_4 ability.send :can_definitions end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cantango-0.8.0 | lib/cantango/permit_engine/compatibility.rb |