Class: Leva::DatasetRecordsController

Inherits:
ApplicationController show all
Defined in:
app/controllers/leva/dataset_records_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject

GET /datasets/:dataset_id/records



6
7
8
# File 'app/controllers/leva/dataset_records_controller.rb', line 6

def index
  @records = @dataset.dataset_records.includes(:recordable)
end

#showObject

GET /datasets/:dataset_id/records/:id



11
12
13
# File 'app/controllers/leva/dataset_records_controller.rb', line 11

def show
  @record = @dataset.dataset_records.find(params[:id])
end