Module: CurationConcerns::Collections::AcceptsBatches

Included in:
EmbargoesControllerBehavior, LeasesControllerBehavior
Defined in:
lib/curation_concerns/collections/accepts_batches.rb

Instance Method Summary collapse

Instance Method Details

#batchObject



4
5
6
# File 'lib/curation_concerns/collections/accepts_batches.rb', line 4

def batch
  @batch ||= batch_ids_from_params
end

#batch=(val) ⇒ Object



8
9
10
# File 'lib/curation_concerns/collections/accepts_batches.rb', line 8

def batch=(val)
  @batch = val
end

#check_for_empty_batch?Boolean

Callback to be used in before_filter

Returns:

  • (Boolean)


13
14
15
# File 'lib/curation_concerns/collections/accepts_batches.rb', line 13

def check_for_empty_batch?
  batch.empty?
end