lib/ably/modules/encodeable.rb in ably-1.0.5 vs lib/ably/modules/encodeable.rb in ably-1.0.6

- old
+ new

@@ -93,10 +93,10 @@ raise Ably::Exceptions::EncoderError("Encoding error, encoding value is too long: '#{message_attributes[:encoding]}'", nil, 92100) end previous_encoding = message_attributes[:encoding] encoders.each do |encoder| - encoder.send method, message_attributes, channel_options + encoder.public_send method, message_attributes, channel_options end end until previous_encoding == message_attributes[:encoding] set_attributes_object message_attributes rescue Ably::Exceptions::CipherError => cipher_error