lib/origen/callbacks.rb in origen-0.28.1 vs lib/origen/callbacks.rb in origen-0.28.2

- old
+ new

@@ -7,9 +7,14 @@ include Origen::ModelInitializer end def register_callback_listener # :nodoc: Origen.app.add_callback_listener(self) + # If this object has been instantiated after on_create has already been called, + # then invoke it now + if Origen.app.on_create_called? + on_create if respond_to?(:on_create) + end end end # The regular callbacks module will register listeners that expire upon the next target # load, normally this is what is wanted at app level since things should start afresh