Minor method comment change

This commit is contained in:
Matthew Kienow 2018-12-27 22:02:00 -05:00
parent 3510a3daa2
commit 84a8c9b638
No known key found for this signature in database
GPG Key ID: 40787F8B1EAC6E41
1 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ module Msf::DBManager::SessionEvent
# Retrieves session events that are stored in the database.
#
# @param opts [Hash] Hash containing query key-value pairs based on the session events model.
# @param opts [Hash] Hash containing query key-value pairs based on the session event model.
# @option opts :id [Integer] A specific session event ID. If specified, all other options are ignored.
#
# Additional query options:
@ -17,7 +17,7 @@ module Msf::DBManager::SessionEvent
# of the set. Default: 0
# @option opts :search_term [String] Search regular expression used to filter results.
# All fields are converted to strings and results are returned if the pattern is matched.
# @return [Array<Mdm::SessionEvent>] session events that are matched.
# @return [Array<Mdm::SessionEvent>|Mdm::SessionEvent::ActiveRecord_Relation] session events that are matched.
def session_events(opts)
::ActiveRecord::Base.connection_pool.with_connection {
# If we have the ID, there is no point in creating a complex query.