Module: Admin::UploadUtil

Defined in:
lib/generators/geoblacklight_admin/templates/config/initializers/geoblacklight_admin.rb

Class Method Summary collapse

Class Method Details

.kithe_upload_data_config(toggle_value: "kithe-upload") ⇒ Object



29
30
31
32
33
34
# File 'lib/generators/geoblacklight_admin/templates/config/initializers/geoblacklight_admin.rb', line 29

def self.kithe_upload_data_config(toggle_value: "kithe-upload")
  {
    toggle: toggle_value,
    upload_endpoint: Rails.application.routes.url_helpers.admin_direct_app_upload_path
  }
end