Method: Ditz::Issue#get_component

Defined in:
lib/model-objects.rb

#get_component(config, project) ⇒ Object



216
217
218
219
220
221
222
# File 'lib/model-objects.rb', line 216

def get_component config, project
  if project.components.size == 1
    project.components.first
  else
    ask_for_selection project.components, "component", :name
  end.name
end