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

Version Path
cantango-core-0.1.9.3 lib/cantango/can_can/rule_class.rb
cantango-core-0.1.9.2 lib/cantango/can_can/rule_class.rb
cantango-core-0.1.9.1 lib/cantango/can_can/rule_class.rb
cantango-core-0.1.9 lib/cantango/can_can/rule_class.rb
cantango-core-0.1.8 lib/cantango/can_can/rule_class.rb
cantango-core-0.1.7 lib/cantango/can_can/rule_class.rb
cantango-core-0.1.6 lib/cantango/can_can/rule_class.rb
cantango-core-0.1.5 lib/cantango/can_can/rule_class.rb