lib/hanami/extensions/view/context.rb in hanami-2.1.0.beta2.1 vs lib/hanami/extensions/view/context.rb in hanami-2.1.0.rc1
- old
+ new
@@ -102,20 +102,9 @@
# Dup any objects that will be mutated over a given rendering to ensure no leakage of
# state across distinct view renderings.
@content_for = source.instance_variable_get(:@content_for).dup
end
- def with(**args)
- self.class.new(
- inflector: @inflector,
- settings: @settings,
- assets: @assets,
- routes: @routes,
- request: @request,
- **args
- )
- end
-
def assets
unless @assets
raise Hanami::ComponentLoadError, "the hanami-assets gem is required to access assets"
end