Module: Hydra::Collections::AcceptsBatches
- Defined in:
- lib/hydra/collections/accepts_batches.rb
Instance Method Summary collapse
- #batch ⇒ Object
- #batch=(val) ⇒ Object
-
#check_for_empty_batch? ⇒ Boolean
Callback to be used in before_filter.
Instance Method Details
#batch ⇒ Object
5 6 7 |
# File 'lib/hydra/collections/accepts_batches.rb', line 5 def batch @batch ||= batch_ids_from_params end |
#batch=(val) ⇒ Object
9 10 11 |
# File 'lib/hydra/collections/accepts_batches.rb', line 9 def batch=(val) @batch = val end |
#check_for_empty_batch? ⇒ Boolean
Callback to be used in before_filter
14 15 16 |
# File 'lib/hydra/collections/accepts_batches.rb', line 14 def check_for_empty_batch? return batch.empty? end |