Rubocop improvement.

This commit is contained in:
Thorsten Eckel 2015-08-05 11:48:21 +02:00
parent 804e9ddcfe
commit a24f45ce6f

View file

@ -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 = {}