Module: Hyrax::Collections::AcceptsBatches
- Included in:
- BatchEditsController, Dashboard::CollectionMembersController, Dashboard::CollectionsController, EmbargoesControllerBehavior, LeasesControllerBehavior, MyController
- Defined in:
- app/controllers/concerns/hyrax/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 '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
14 15 16 |
# File 'app/controllers/concerns/hyrax/collections/accepts_batches.rb', line 14 def check_for_empty_batch? batch.empty? end |