Rubocop improvement.
This commit is contained in:
parent
804e9ddcfe
commit
a24f45ce6f
1 changed files with 1 additions and 3 deletions
|
@ -19,9 +19,7 @@ class SearchController < ApplicationController
|
|||
|
||||
# convert objects string into array of class names
|
||||
# e.g. user-ticket-another_object = %w( User Ticket AnotherObject )
|
||||
objects = params[:objects].split('-').map { |object|
|
||||
object.camelize
|
||||
}
|
||||
objects = params[:objects].split('-').map(&:camelize)
|
||||
|
||||
# try search index backend
|
||||
assets = {}
|
||||
|
|
Loading…
Reference in a new issue