Sha256: 7f82895e5dfc94f8c8fce7335b63bab262f81db80ea8d8071461857dbefbd7be
Contents?: true
Size: 251 Bytes
Versions: 43
Compression:
Stored size: 251 Bytes
Contents
module Ddr module Auth class ComponentAbilityDefinitions < AbilityDefinitions def call can :create, Ddr::Component 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