We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e1aeb7b commit 9dc5bfbCopy full SHA for 9dc5bfb
lib/arbre/element.rb
@@ -174,7 +174,9 @@ def clear_children!
174
# 4. Call super
175
#
176
ruby2_keywords def method_missing(name, *args, &block)
177
- if current_arbre_element.respond_to?(name)
+ if "Arbre::Components::#{name.to_s.camelize}".safe_constantize && respond_to?(name)
178
+ public_send(name, *args, &block)
179
+ elsif current_arbre_element.respond_to?(name)
180
current_arbre_element.send name, *args, &block
181
elsif assigns && assigns.has_key?(name)
182
assigns[name]
0 commit comments