foodcoop-adam/foodsoft

View on GitHub
app/controllers/users_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
class UsersController < ApplicationController

  # Currently used to for user nick autocompletion
  def index
    @users = User.natural_search(params[:q])
    respond_to do |format|
      format.json { render :json => search_data(@users, proc {|o| o.display }) }
    end
  end

end