lib/submodules/ably-ruby/lib/ably/realtime/auth.rb in ably-rest-1.0.5 vs lib/submodules/ably-ruby/lib/ably/realtime/auth.rb in ably-rest-1.0.6

- old
+ new

@@ -231,10 +231,10 @@ # # @return [Ably::Util::SafeDeferrable] # @yield [Hash] Auth params for a new Realtime connection # def auth_params(&success_callback) - fail_callback = Proc.new do |error, deferrable| + fail_callback = lambda do |error, deferrable| logger.error { "Failed to authenticate: #{error}" } if error.kind_of?(Ably::Exceptions::BaseAblyException) # Use base exception if it exists carrying forward the status codes deferrable.fail Ably::Exceptions::AuthenticationFailed.new(error.message, nil, nil, error) else