app/models/tree_data.rb
# Accepts either a Project or an Organisation and generates the
# data for the tree view visualisation.
Accepts either a Project or an Organisation and generates the
data for the tree view visualisation.
Accepts either a Project or an Organisation and generates the data for the tree view visualisation .
def maybe_add_organisation_type hash
    if @node.class == Organisation
      if @node.organisation_type.present?
        hash['organisation_type'] = @node.organisation_type.to_s
        hash['organisation_type_label'] = Concepts::OrganisationType.find(@node.organisation_type).label
      end
    end
    hash
  end
def maybe_add_organisation_type hash if @node . class == Organisation if @node . organisation_type . present? hash [ 'organisation_type' ] = @node . organisation_type . to_s hash [ 'organisation_type_label' ] = Concepts :: OrganisationType . find ( @node . organisation_type ) . label end end hash end
Accepts either a Project or an Organisation and generates the
data for the tree view visualisation.
Accepts either a Project or an Organisation and generates the data for the tree view visualisation .
hash
<not_specific>