Class: Wco::Api::LeadsController

Inherits:
Wco::ApiController
  • Object
show all
Defined in:
app/controllers/wco/api/leads_controller.rb

Instance Method Summary collapse

Instance Method Details

#index_hashObject



4
5
6
7
# File 'app/controllers/wco/api/leads_controller.rb', line 4

def index_hash
  authorize! :index, Wco::Lead
  @leads = Wco::Lead.find( params[:lead_ids].split(',') )
end