HTML
end
def core_inherit_content
text = if in_context_of_self_set?
core_inherit_for_content_for_self_set
else
"Inherit from left card"
end
%(#{text})
end
def in_context_of_self_set?
return false unless @set_context
@set_context.to_name.tag_name.key == Card[:self].key
end
def core_inherit_for_content_for_self_set
task = card.tag.codename
ancestor = Card[@set_context.trunk_name.trunk_name]
links = ancestor.who_can(task).map do |card_id|
link_to_card card_id, nil, target: args[:target]
end * ", "
"Inherit ( #{links} )"
rescue StandardError
"Inherit"
end
end
end;end;end;end;
# ~~ generated from /Users/ezl5238/dev/decko/gem/mod/permissions/set/abstract/permission.rb ~~