8000 Delegate to `helpers` instead of relying on `method_missing` · bugcrowd/activeadmin@081f632 · GitHub
[go: up one dir, main page]

Skip to content

Commit 081f632

Browse files
author
David Rodríguez
committed
Delegate to helpers instead of relying on method_missing
1 parent 97f59b3 commit 081f632

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/active_admin/views/components/active_admin_form.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def commit_action_with_cancel_link
7878
end
7979

8080
def add_create_another_checkbox
81-
if %w(new create).include?(action_name) && active_admin_config && active_admin_config.create_another
81+
if %w(new create).include?(helpers.action_name) && active_admin_config && active_admin_config.create_another
8282
current_arbre_element.add_child(create_another_checkbox)
8383
end
8484
end

0 commit comments

Comments
 (0)
0