Hash syntax improved
This commit is contained in:
parent
557a9fa321
commit
d27ed43daa
3 changed files with 7 additions and 7 deletions
|
@ -29,7 +29,7 @@ class MergeRequest < ActiveRecord::Base
|
|||
|
||||
attr_accessor :should_remove_source_branch
|
||||
|
||||
state_machine :state, :initial => :opened do
|
||||
state_machine :state, initial: :opened do
|
||||
event :close do
|
||||
transition [:reopened, :opened] => :closed
|
||||
end
|
||||
|
@ -39,7 +39,7 @@ class MergeRequest < ActiveRecord::Base
|
|||
end
|
||||
|
||||
event :reopen do
|
||||
transition :closed => :reopened
|
||||
transition closed: :reopened
|
||||
end
|
||||
|
||||
state :opened
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue