Skip to content

Commit b9d480e

Browse files
committed
Fix Performance/MethodObjectAsBlock warning
1 parent 1215980 commit b9d480e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/models/ext_management_system.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,8 @@ def edit_with_params(params, endpoints, authentications)
190190
authentications_changed ||= authentications_to_delete.delete_all > 0
191191

192192
ems.assign_attributes(params)
193-
ems.endpoints = endpoints.map(&method(:assign_nested_endpoint))
194-
ems.authentications = authentications.map(&method(:assign_nested_authentication))
193+
ems.endpoints = endpoints.map { |ep| assign_nested_endpoint(ep) }
194+
ems.authentications = authentications.map { |auth| assign_nested_authentication(auth) }
195195

196196
endpoint_changes = ems.endpoints.select(&:changed?).to_h do |ep|
197197
[ep.role.to_sym, ep.changes]

0 commit comments

Comments
 (0)