lib/ably/modules/statesman_monkey_patch.rb in ably-0.8.7 vs lib/ably/modules/statesman_monkey_patch.rb in ably-0.8.8
- old
+ new
@@ -3,18 +3,18 @@
module StatesmanMonkeyPatch
# Override Statesman's #before_transition to support :from arrays
# This can be removed once https://github.com/gocardless/statesman/issues/95 is solved
def before_transition(options = nil, &block)
arrayify_transition(options) do |options_without_from_array|
- super *options_without_from_array, &block
+ super(*options_without_from_array, &block)
end
end
# Override Statesman's #after_transition to support :from arrays
# This can be removed once https://github.com/gocardless/statesman/issues/95 is solved
def after_transition(options = nil, &block)
arrayify_transition(options) do |options_without_from_array|
- super *options_without_from_array, &block
+ super(*options_without_from_array, &block)
end
end
private
def arrayify_transition(options, &block)