lib/storyblok/richtext/html_renderer.rb in storyblok-richtext-renderer-0.0.3 vs lib/storyblok/richtext/html_renderer.rb in storyblok-richtext-renderer-0.0.4
- old
+ new
@@ -51,10 +51,10 @@
Storyblok::Richtext::Nodes::Blok
]
end
def set_component_resolver(component_resolver)
- Storyblok::Richtext::Nodes::Blok.define_method :component_resolver, component_resolver
+ Storyblok::Richtext::Nodes::Blok.send :define_method, :component_resolver, component_resolver
end
def add_node(node)
@nodes.push(node)
end