Module: Hyrax::Collections::AcceptsBatches

Defined in:
lib/hyrax/collections/accepts_batches.rb

Instance Method Summary collapse

Instance Method Details

#batchObject



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

def batch
  @batch ||= batch_ids_from_params
end

#batch=(val) ⇒ Object



8
9
10
# File 'lib/hyrax/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/hyrax/collections/accepts_batches.rb', line 13

def check_for_empty_batch?
  batch.empty?
end