lib/spontaneous/page_piece.rb in spontaneous-0.2.0.beta7 vs lib/spontaneous/page_piece.rb in spontaneous-0.2.0.beta8
- old
+ new
@@ -30,9 +30,15 @@
# This is used to unwrap pages from their entries within boxes
def to_page
target
end
+ # Used by Spontaneous::Model::Core::=== to look inside PagePiece objects
+ # and test against the class of the target, not of the proxy
+ def content_class
+ target.class
+ end
+
def id
target.id
end
def depth