lib/hanami/layout.rb in hanami-view-0.6.1 vs lib/hanami/layout.rb in hanami-view-0.7.0

- old
+ new

@@ -91,18 +91,26 @@ def suffix SUFFIX end protected + # Loading mechanism hook. # # @api private # @since 0.1.0 # # @see Hanami::View.load! def load! - registry.freeze + load_registry! configuration.freeze + end + + private + + def load_registry! + @registry = nil + registry.freeze end end # Initialize a layout #