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
|
# convert objects string into array of class names
|
||||||
# e.g. user-ticket-another_object = %w( User Ticket AnotherObject )
|
# e.g. user-ticket-another_object = %w( User Ticket AnotherObject )
|
||||||
objects = params[:objects].split('-').map { |object|
|
objects = params[:objects].split('-').map(&:camelize)
|
||||||
object.camelize
|
|
||||||
}
|
|
||||||
|
|
||||||
# try search index backend
|
# try search index backend
|
||||||
assets = {}
|
assets = {}
|
||||||
|
|
Loading…
Reference in a new issue