Class: Renalware::Patients::PracticesController

Inherits:
BaseController show all
Defined in:
app/controllers/renalware/patients/practices_controller.rb

Instance Method Summary collapse

Methods inherited from BaseController

#patient

Instance Method Details

#searchObject

Search for GP Practices matching part of a name



9
10
11
12
13
14
15
16
# File 'app/controllers/renalware/patients/practices_controller.rb', line 9

def search
  authorize Practice, :search?
  respond_to do |format|
    format.json do
      render json: practices_matching_search_term
    end
  end
end