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 common_details
    kind = @node.class.to_s.downcase
    hash = {
            :uri_slug => "/#{kind}s/#{@node.uri_slug}",
            :resource_type => kind,
            :name => @node.name,
            :more_details => @node.more_details
           }
    hash = maybe_add_organisation_type(hash)
    maybe_add_activity_type(hash)
  end
def common_details kind = @node . class . to_s . downcase hash = { :uri_slug => "/#{kind}s/#{@node.uri_slug}" , :resource_type => kind , :name => @node . name , :more_details => @node . more_details } hash = maybe_add_organisation_type ( hash ) maybe_add_activity_type ( 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 .