Module: Ably::Modules::StatesmanMonkeyPatch Private

Defined in:
lib/ably/modules/statesman_monkey_patch.rb

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Instance Method Summary collapse

Instance Method Details

#after_transition(options = nil, &block) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Override Statesman’s #after_transition to support :from arrays This can be removed once github.com/gocardless/statesman/issues/95 is solved



14
15
16
17
18
# File 'lib/ably/modules/statesman_monkey_patch.rb', line 14

def after_transition(options = nil, &block)
  arrayify_transition(options) do |options_without_from_array|
    super(*options_without_from_array, &block)
  end
end

#before_transition(options = nil, &block) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Override Statesman’s #before_transition to support :from arrays This can be removed once github.com/gocardless/statesman/issues/95 is solved



6
7
8
9
10
# File 'lib/ably/modules/statesman_monkey_patch.rb', line 6

def before_transition(options = nil, &block)
  arrayify_transition(options) do |options_without_from_array|
    super(*options_without_from_array, &block)
  end
end