diff options
| author | Andrew8xx8 <avk@8xx8.ru> | 2013-02-18 17:22:18 +0400 |
|---|---|---|
| committer | Andrew8xx8 <avk@8xx8.ru> | 2013-02-18 17:22:18 +0400 |
| commit | d27ed43daa18476b3fec6e705406c76a1b057f60 (patch) | |
| tree | 59055fe6bbb18ab5aaef7742bfd07accccfb007e /app/models/issue.rb | |
| parent | 557a9fa3216f003e84d66f6d6319e24bea341d0f (diff) | |
| download | gitlab-ce-d27ed43daa18476b3fec6e705406c76a1b057f60.tar.gz | |
Hash syntax improved
Diffstat (limited to 'app/models/issue.rb')
| -rw-r--r-- | app/models/issue.rb | 4 |
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 |
