lib/adhearsion/call_controller.rb in adhearsion-2.3.1 vs lib/adhearsion/call_controller.rb in adhearsion-2.3.2

- old
+ new

@@ -58,11 +58,11 @@ # @private attr_reader :block delegate :[], :[]=, :to => :@metadata - delegate :variables, :logger, :to => :call + delegate :variables, :to => :call # # Create a new instance # # @param [Call] call the call to operate the controller on @@ -266,8 +266,19 @@ end # @private def inspect "#<#{self.class} call=#{call.alive? ? call.id : ''}, metadata=#{metadata.inspect}>" + end + + def eql?(other) + other.instance_of?(self.class) && call == other.call && metadata == other.metadata + end + alias :== :eql? + + def logger + call.logger + rescue Celluloid::DeadActorError + super end end#class end