fix Postzord::Dispatcher#object_should_be_processed_as_public?

This commit is contained in:
Jonne Hass 2011-09-16 19:41:56 +02:00
parent b63b6cbcd5
commit 01f7625649

View file

@ -25,9 +25,9 @@ class Postzord::Dispatcher
# @param object [Object]
# @return [Boolean]
def self.object_should_be_processed_as_public?(object)
if object.respond_to?(:public) && object.public?
if object.respond_to?(:public?) && object.public?
true
elsif object.respond_to?(:relayable?) && object.parent.public?
elsif object.respond_to?(:relayable?) && object.parent.respond_to?(:public?) && object.parent.public?
true
else
false