Skip to content

Commit

Permalink
Fix database connections page
Browse files Browse the repository at this point in the history
The AR method #order doesn't take a block.
This was changed in 08c8342
  • Loading branch information
carbonin committed Feb 11, 2019
1 parent 2e05444 commit 64af5d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/ops_controller/db.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def db_list(exp = nil)
]
)
elsif model == VmdbDatabaseConnection
@zones = Zone.visible.order(&:name).collect { |z| [z.name, z.name] }
@zones = Zone.visible.order(:name).collect { |z| [z.name, z.name] }
# for now we dont need this pulldown, need to get a method that gives us a list of workers for filter pulldown
# @workers = MiqWorker.all.sort_by(&:type).collect { |w| [w.friendly_name, w.id] }
end
Expand Down

0 comments on commit 64af5d7

Please sign in to comment.