fix Postzord::Dispatcher#object_should_be_processed_as_public?
This commit is contained in:
parent
b63b6cbcd5
commit
01f7625649
1 changed files with 2 additions and 2 deletions
|
|
@ -25,9 +25,9 @@ class Postzord::Dispatcher
|
||||||
# @param object [Object]
|
# @param object [Object]
|
||||||
# @return [Boolean]
|
# @return [Boolean]
|
||||||
def self.object_should_be_processed_as_public?(object)
|
def self.object_should_be_processed_as_public?(object)
|
||||||
if object.respond_to?(:public) && object.public?
|
if object.respond_to?(:public?) && object.public?
|
||||||
true
|
true
|
||||||
elsif object.respond_to?(:relayable?) && object.parent.public?
|
elsif object.respond_to?(:relayable?) && object.parent.respond_to?(:public?) && object.parent.public?
|
||||||
true
|
true
|
||||||
else
|
else
|
||||||
false
|
false
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue