lib/hyperstack/internal/component/class_methods.rb in hyper-component-1.0.alpha1.5 vs lib/hyperstack/internal/component/class_methods.rb in hyper-component-1.0.alpha1.6
- old
+ new
@@ -48,10 +48,10 @@
end
def render(container = nil, params = {}, &block)
Tags.included(self)
if container
- container = container.type if container.is_a? Hyperstack::Component::Element
+ container = container.element_type if container.is_a? Hyperstack::Component::Element
define_method(:__hyperstack_component_render) do
__hyperstack_component_select_wrappers do
RenderingContext.render(container, params) do
instance_eval(&block) if block
end