Sha256: e386fc333c7df798bac766b671dc703919569c5cfa3ffa89da380375cc21e20b
Contents?: true
Size: 528 Bytes
Versions: 18
Compression:
Stored size: 528 Bytes
Contents
require_dependency "renalware/patients" module Renalware module Patients class PracticesController < BaseController # Search for GP Practices matching part of a name def search authorize Practice, :search? respond_to do |format| format.json do render json: practices_matching_search_term end end end private def practices_matching_search_term PracticeSearchQuery.new(search_term: params[:q]).call end end end end
Version data entries
18 entries across 18 versions & 1 rubygems