Sha256: 1e99b6ba2ff77a8c77cb167f022c820d4b8f5916b80408d6481a6b5626be4bf2

Contents?: true

Size: 638 Bytes

Versions: 7

Compression:

Stored size: 638 Bytes

Contents

# frozen_string_literal: true

# BulkActionsHelper
#
# This module provides helper methods for handling bulk actions
# within the GeoblacklightAdmin application.
module BulkActionsHelper
  # 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.
  #
  # @return [Array<String>] an array of attribute names
  def bulk_actions_collection
    attrs = GeoblacklightAdmin::Schema.instance.importable_fields.collect { |key, _value| key }
    attrs.prepend("Publication State")
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
geoblacklight_admin-0.8.0 app/helpers/bulk_actions_helper.rb
geoblacklight_admin-0.7.1 app/helpers/bulk_actions_helper.rb
geoblacklight_admin-0.7.0 app/helpers/bulk_actions_helper.rb
geoblacklight_admin-0.6.3 app/helpers/bulk_actions_helper.rb
geoblacklight_admin-0.6.2 app/helpers/bulk_actions_helper.rb
geoblacklight_admin-0.6.1 app/helpers/bulk_actions_helper.rb
geoblacklight_admin-0.6.0 app/helpers/bulk_actions_helper.rb