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

- old
+ new

@@ -425,30 +425,30 @@ end # Load partials for each partial template file found under the # given load paths # - # @since x.x.x + # @since 0.7.0 # @api private def load_partials! Hanami::View::Rendering::PartialTemplatesFinder.new(self).find.each do |partial| add_partial(partial) end end # Load partials for each partial template file found under the # given load paths # - # @since x.x.x + # @since 0.7.0 # @api private def find_partial(relative_partial_path, template_name, format) partials_for_view = partials.has_key?(relative_partial_path) ? partials[relative_partial_path] : partials[template_name] partials_for_view ? partials_for_view[format.to_sym] : nil end # Add a partial to the registry # - # @since x.x.x + # @since 0.7.0 # @api private def add_partial(partial) @partials[partial.key][partial.format.to_sym] = partial.template end