diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2020-10-03 15:36:43 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2020-10-03 15:36:43 +0000 |
commit | 2297ce58cfb8d4559336bf68bfdadf00cfbb08ed (patch) | |
tree | 5a06e2e8178fff4e310fcb3a4f624e902ab4f58c /app | |
parent | 52eba6ead5abcda915dd2d5fd88b162fbd66e038 (diff) | |
download | redmine-2297ce58cfb8d4559336bf68bfdadf00cfbb08ed.tar.gz redmine-2297ce58cfb8d4559336bf68bfdadf00cfbb08ed.zip |
remove spaces inside {} of app/models/issue_relation.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20114 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r-- | app/models/issue_relation.rb | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/app/models/issue_relation.rb b/app/models/issue_relation.rb index fe3c30374..d0a66ba40 100644 --- a/app/models/issue_relation.rb +++ b/app/models/issue_relation.rb @@ -49,24 +49,24 @@ class IssueRelation < ActiveRecord::Base TYPE_COPIED_FROM = "copied_from" TYPES = { - TYPE_RELATES => { :name => :label_relates_to, :sym_name => :label_relates_to, - :order => 1, :sym => TYPE_RELATES }, - TYPE_DUPLICATES => { :name => :label_duplicates, :sym_name => :label_duplicated_by, - :order => 2, :sym => TYPE_DUPLICATED }, - TYPE_DUPLICATED => { :name => :label_duplicated_by, :sym_name => :label_duplicates, - :order => 3, :sym => TYPE_DUPLICATES, :reverse => TYPE_DUPLICATES }, - TYPE_BLOCKS => { :name => :label_blocks, :sym_name => :label_blocked_by, - :order => 4, :sym => TYPE_BLOCKED }, - TYPE_BLOCKED => { :name => :label_blocked_by, :sym_name => :label_blocks, - :order => 5, :sym => TYPE_BLOCKS, :reverse => TYPE_BLOCKS }, - TYPE_PRECEDES => { :name => :label_precedes, :sym_name => :label_follows, - :order => 6, :sym => TYPE_FOLLOWS }, - TYPE_FOLLOWS => { :name => :label_follows, :sym_name => :label_precedes, - :order => 7, :sym => TYPE_PRECEDES, :reverse => TYPE_PRECEDES }, - TYPE_COPIED_TO => { :name => :label_copied_to, :sym_name => :label_copied_from, - :order => 8, :sym => TYPE_COPIED_FROM }, - TYPE_COPIED_FROM => { :name => :label_copied_from, :sym_name => :label_copied_to, - :order => 9, :sym => TYPE_COPIED_TO, :reverse => TYPE_COPIED_TO } + TYPE_RELATES => {:name => :label_relates_to, :sym_name => :label_relates_to, + :order => 1, :sym => TYPE_RELATES}, + TYPE_DUPLICATES => {:name => :label_duplicates, :sym_name => :label_duplicated_by, + :order => 2, :sym => TYPE_DUPLICATED}, + TYPE_DUPLICATED => {:name => :label_duplicated_by, :sym_name => :label_duplicates, + :order => 3, :sym => TYPE_DUPLICATES, :reverse => TYPE_DUPLICATES}, + TYPE_BLOCKS => {:name => :label_blocks, :sym_name => :label_blocked_by, + :order => 4, :sym => TYPE_BLOCKED}, + TYPE_BLOCKED => {:name => :label_blocked_by, :sym_name => :label_blocks, + :order => 5, :sym => TYPE_BLOCKS, :reverse => TYPE_BLOCKS}, + TYPE_PRECEDES => {:name => :label_precedes, :sym_name => :label_follows, + :order => 6, :sym => TYPE_FOLLOWS}, + TYPE_FOLLOWS => {:name => :label_follows, :sym_name => :label_precedes, + :order => 7, :sym => TYPE_PRECEDES, :reverse => TYPE_PRECEDES}, + TYPE_COPIED_TO => {:name => :label_copied_to, :sym_name => :label_copied_from, + :order => 8, :sym => TYPE_COPIED_FROM}, + TYPE_COPIED_FROM => {:name => :label_copied_from, :sym_name => :label_copied_to, + :order => 9, :sym => TYPE_COPIED_TO, :reverse => TYPE_COPIED_TO} }.freeze validates_presence_of :issue_from, :issue_to, :relation_type |