Class: Story

Inherits:
Ticket
  • Object
show all
Defined in:
app/models/story.rb

Constant Summary

Constants inherited from Ticket

Ticket::ACTIVE_STATES, Ticket::ALLOWED_TYPES, Ticket::ARCHIVED_STATES

Instance Attribute Summary

Attributes inherited from Ticket

#old_ancestor_ids

Instance Method Summary collapse

Methods inherited from Ticket

#assignment_users, #assignment_users_hash, filtered_type_class, ordered, #reorder!, #short_title, #tags, #touch_ancestry, #trigger_event!

Instance Method Details

#titleObject



22
23
24
25
26
27
28
# File 'app/models/story.rb', line 22

def title
  return super unless who.present? && what.present?
  title = "#{who} wants to #{what}"
  title += ", so: #{why}" if why.present?

  title
end