Skip to content

Commit 9a53859

Browse files
committed
Rails 4 finder conversion
MSP-12012 * covert find(:first) to first
1 parent 036cb77 commit 9a53859

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/msf/core/db_manager.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def initialize(framework, opts = {})
130130
#
131131
def check
132132
::ActiveRecord::Base.connection_pool.with_connection {
133-
res = ::Mdm::Host.find(:first)
133+
res = ::Mdm::Host.first
134134
}
135135
end
136136

0 commit comments

Comments
 (0)