Module: Hyrax::Collections::AcceptsBatches

Instance Method Summary collapse

Instance Method Details

#batchObject



5
6
7
# File 'app/controllers/concerns/hyrax/collections/accepts_batches.rb', line 5

def batch
  @batch ||= batch_ids_from_params
end

#batch=(val) ⇒ Object



9
10
11
# File 'app/controllers/concerns/hyrax/collections/accepts_batches.rb', line 9

def batch=(val)
  @batch = val
end

#check_for_empty_batch?Boolean

Callback to be used in before_filter

Returns:

  • (Boolean)


14
15
16
# File 'app/controllers/concerns/hyrax/collections/accepts_batches.rb', line 14

def check_for_empty_batch?
  batch.empty?
end