app/services/schemas/edges/calculator.rb
# A calculator to generate {Schemas::Edges::Edge edges} for use with
# validations and protecting hierarchical integrity.
A calculator to generate {Schemas::Edges::Edge edges} for use with
validations and protecting hierarchical integrity.
A calculator to generate { Schemas :: Edges :: Edge edges } for use with validations and protecting hierarchical integrity .
def calculate_inherited
        case [parent, child]
        when %w[collection collection] then :community
        when %w[item item] then :collection
        end
      end
def calculate_inherited case [ parent , child ] when %w[ collection collection ] then :community when %w[ item item ] then :collection end end
A calculator to generate {Schemas::Edges::Edge edges} for use with
validations and protecting hierarchical integrity.
A calculator to generate { Schemas :: Edges :: Edge edges } for use with validations and protecting hierarchical integrity .