Hash syntax improved

This commit is contained in:
Andrew8xx8 2013-02-18 17:22:18 +04:00
parent 557a9fa321
commit d27ed43daa
3 changed files with 7 additions and 7 deletions

View file

@ -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