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