Skip to content

Commit

Permalink
Fix keyword delegation in form component
Browse files Browse the repository at this point in the history
We added `ruby2_keywords` in other `method_missing` delegations, but not
here.
  • Loading branch information
deivid-rodriguez committed Feb 4, 2022
1 parent a8ff8ce commit 15abdb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/arbre/rails/forms.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def proxy_call_to_form(method, *args, &block)
text_node form_builder.send(method, *args, &block)
end

def method_missing(method, *args, &block)
ruby2_keywords def method_missing(method, *args, &block)
if form_builder && form_builder.respond_to?(method)
proxy_call_to_form(method, *args, &block)
else
Expand Down

0 comments on commit 15abdb1

Please sign in to comment.