Module: RedmineAvm::Patches::IssuePatch::MotivationMethods

Defined in:
lib/redmine_avm/patches/issue_patch.rb

Instance Method Summary collapse

Instance Method Details

#motivated?Boolean

Returns:

  • (Boolean)


52
53
54
# File 'lib/redmine_avm/patches/issue_patch.rb', line 52

def motivated?
  motivated_by_self? || motivated_by_relations?
end

#motivated_by_relations?Boolean

Returns:

  • (Boolean)


60
61
62
# File 'lib/redmine_avm/patches/issue_patch.rb', line 60

def motivated_by_relations?
  !undefined? && r_dependencies.any?(&:motivated?)
end

#motivated_by_self?Boolean

Returns:

  • (Boolean)


56
57
58
# File 'lib/redmine_avm/patches/issue_patch.rb', line 56

def motivated_by_self?
  !undefined? && motivation_section.present?
end

#motivation_sectionObject



64
65
66
# File 'lib/redmine_avm/patches/issue_patch.rb', line 64

def motivation_section
  description_section(::Avm::Settings.motivation_section_title)
end