Skip to content

Commit 5fe42e1

Browse files
Replace with map!
1 parent b3e61e3 commit 5fe42e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/active_admin/mongoid/filter_form_builder.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def default_input_type(method, options = {})
2525
end
2626

2727
def is_association?(method)
28-
@object.klass.associations.to_a.map(&:first).include?(method.to_s)
28+
@object.klass.associations.to_a.map!(&:first).include?(method.to_s)
2929
end
3030

3131
def column_for(method)

0 commit comments

Comments
 (0)