Sha256: ff962322f6631b23652a94d9c357259ac8d95384be144fa58d7721a221ceee7c

Contents?: true

Size: 514 Bytes

Versions: 1

Compression:

Stored size: 514 Bytes

Contents

module CanTango::PermitEngine
  class License
    module Rules
      def can(action, subject, conditions = nil, &block)
        permit.can action, subject, conditions, &block
      end

      def cannot(action, subject, conditions = nil, &block)
        permit.cannot action, subject, conditions, &block
      end

      def owns(user_account, clazz, ownership_relation = :user_id, user_id_attribute = :id)
        permit.owns user_account, clazz, ownership_relation, user_id_attribute
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cantango-0.8.0 lib/cantango/permit_engine/license/rules.rb