summaryrefslogtreecommitdiff
path: root/app/models/issue.rb
diff options
context:
space:
mode:
authorAndrew8xx8 <avk@8xx8.ru>2013-02-18 17:22:18 +0400
committerAndrew8xx8 <avk@8xx8.ru>2013-02-18 17:22:18 +0400
commitd27ed43daa18476b3fec6e705406c76a1b057f60 (patch)
tree59055fe6bbb18ab5aaef7742bfd07accccfb007e /app/models/issue.rb
parent557a9fa3216f003e84d66f6d6319e24bea341d0f (diff)
downloadgitlab-ce-d27ed43daa18476b3fec6e705406c76a1b057f60.tar.gz
Hash syntax improved
Diffstat (limited to 'app/models/issue.rb')
-rw-r--r--app/models/issue.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/issue.rb b/app/models/issue.rb
index 6c0f4da46d4..dacecbd0cea 100644
--- a/app/models/issue.rb
+++ b/app/models/issue.rb
@@ -25,13 +25,13 @@ class Issue < ActiveRecord::Base
acts_as_taggable_on :labels
- state_machine :state, :initial => :opened do
+ state_machine :state, initial: :opened do
event :close do
transition [:reopened, :opened] => :closed
end
event :reopen do
- transition :closed => :reopened
+ transition closed: :reopened
end
state :opened