Sha256: 1a1f9c818c908d4e78124a2c8722865d3e175e3b7054d47302496fb8baed4533
Contents?: true
Size: 241 Bytes
Versions: 43
Compression:
Stored size: 241 Bytes
Contents
module Ddr module Auth class ItemAbilityDefinitions < AbilityDefinitions def call can :create, Ddr::Item do |obj| obj.parent.present? && can?(:add_children, obj.parent) end end end end end
Version data entries
43 entries across 43 versions & 1 rubygems