8000 Merge pull request #3431 from timoschilling/code_simplification · rbazinet/activeadmin@6344d29 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6344d29

Browse files
committed
Merge pull request activeadmin#3431 from timoschilling/code_simplification
cleanup
2 parents 5e114b7 + 2133d7c commit 6344d29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/active_admin/form_builder.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ def without_wrapper
166166
def js_for_has_many(assoc, form_block, template, new_record, class_string)
167167
assoc_reflection = object.class.reflect_on_association assoc
168168
assoc_name = assoc_reflection.klass.model_name
169-
placeholder = "NEW_#{assoc_name.to_s.upcase.split(' ').join('_')}_RECORD"
169+
placeholder = "NEW_#{assoc_name.to_s.underscore.upcase}_RECORD"
170170
opts = {
171171
for: [assoc, assoc_reflection.klass.new],
172172
class: class_string,

0 commit comments

Comments
 (0)
0