Module: BulkActionsHelper

Defined in:
app/helpers/bulk_actions_helper.rb

Overview

BulkActionsHelper

This module provides helper methods for handling bulk actions within the GeoblacklightAdmin application.

Instance Method Summary collapse

Instance Method Details

#bulk_actions_collectionArray<String>

Returns a collection of attributes that can be used for bulk actions.

The collection includes all importable fields from the GeoblacklightAdmin schema, with “Publication State” prepended to the list.

Returns:

  • (Array<String>)

    an array of attribute names



14
15
16
17
# File 'app/helpers/bulk_actions_helper.rb', line 14

def bulk_actions_collection
  attrs = GeoblacklightAdmin::Schema.instance.importable_fields.collect { |key, _value| key }
  attrs.prepend("Publication State")
end