Skip to content

Commit

Permalink
Removed redundant extra composition of hash for transition
Browse files Browse the repository at this point in the history
  • Loading branch information
Spiralis authored and bryanlarsen committed Jul 8, 2011
1 parent d796b9b commit 970e0ec
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions hobo/lib/hobo/model/lifecycles.rb
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,7 @@ def create(name, options={}, &block)

def transition(name, change, options={}, &block)
change.each do |k,v|
h = {k=>v}
@lifecycle.def_transition(name, Array(h.keys.first), h.values.first, block, options)
@lifecycle.def_transition(name, Array(k), v, block, options)
end
end

Expand Down

0 comments on commit 970e0ec

Please sign in to comment.