Module: RedmineAvm::Patches::IssuePatch::MotivationMethods
- Defined in:
- lib/redmine_avm/patches/issue_patch.rb
Instance Method Summary collapse
- #motivated? ⇒ Boolean
- #motivated_by_relations? ⇒ Boolean
- #motivated_by_self? ⇒ Boolean
- #motivation_section ⇒ Object
Instance Method Details
#motivated? ⇒ 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
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
56 57 58 |
# File 'lib/redmine_avm/patches/issue_patch.rb', line 56 def motivated_by_self? !undefined? && motivation_section.present? end |
#motivation_section ⇒ Object
64 65 66 |
# File 'lib/redmine_avm/patches/issue_patch.rb', line 64 def motivation_section description_section(::Avm::Settings.motivation_section_title) end |