lib/tapestry/ready.rb in tapestry-0.5.0 vs lib/tapestry/ready.rb in tapestry-0.6.0

- old
+ new

@@ -53,17 +53,19 @@ # no ready validations have failed, that information is stored so that any # subsequent calls to `ready?` do not query the ready validations again. def when_ready(&_block) already_marked_ready = ready - no_ready_check_possible unless block_given? + # no_ready_check_possible unless block_given? self.ready = ready? not_ready_validation(ready_error || 'NO REASON PROVIDED') unless ready - yield self + yield self if block_given? ensure self.ready = already_marked_ready end + + alias check_if_ready when_ready # The `ready?` method is used to check if the page has been loaded # successfully, which means that none of the ready validations have # indicated failure. #