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/milestone.rb | |
parent | 557a9fa3216f003e84d66f6d6319e24bea341d0f (diff) | |
download | gitlab-ce-d27ed43daa18476b3fec6e705406c76a1b057f60.tar.gz |
Hash syntax improved
Diffstat (limited to 'app/models/milestone.rb')
-rw-r--r-- | app/models/milestone.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/models/milestone.rb b/app/models/milestone.rb index 23b414467ca..d822a68dc7a 100644 --- a/app/models/milestone.rb +++ b/app/models/milestone.rb @@ -26,13 +26,13 @@ class Milestone < ActiveRecord::Base validates :title, presence: true validates :project, presence: true - state_machine :state, :initial => :active do + state_machine :state, initial: :active do event :close do - transition :active => :closed + transition active: :closed end event :activate do - transition :closed => :active + transition closed: :active end state :closed |