Class: IssuePriority

Inherits:
Enumeration show all
Defined in:
app/models/issue_priority.rb

Overview

– copyright ChiliProject is a project management system.

Copyright (C) 2010-2013 the ChiliProject Team

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

See doc/COPYRIGHT.rdoc for more details. ++

Constant Summary collapse

OptionName =
:enumeration_issue_priorities

Instance Method Summary collapse

Methods inherited from Enumeration

#<=>, #before_save, default, #destroy, #destroy_without_reassign, get_subclasses, #in_use?, #is_override?, overridding_change?, same_active_state?, same_custom_values?, #to_s

Instance Method Details

#objects_countObject


24
25
26
# File 'app/models/issue_priority.rb', line 24

def objects_count
  issues.count
end

#option_nameObject


20
21
22
# File 'app/models/issue_priority.rb', line 20

def option_name
  OptionName
end

#transfer_relations(to) ⇒ Object


28
29
30
# File 'app/models/issue_priority.rb', line 28

def transfer_relations(to)
  issues.update_all("priority_id = #{to.id}")
end