metamaps--metamaps/app/helpers/users_helper.rb
2017-11-25 11:23:47 -08:00

12 lines
271 B
Ruby

# frozen_string_literal: true
module UsersHelper
# build custom json autocomplete for typeahead
def autocomplete_user_array_json(users)
json_users = []
users.each do |user|
json_users.push user.as_json_for_autocomplete
end
json_users
end
end