Sha256: 8f2cf0b4749415169451533f04c6589b641a8b8e89390288acb0686baa3970bb

Contents?: true

Size: 295 Bytes

Versions: 2

Compression:

Stored size: 295 Bytes

Contents

# frozen_string_literal: true

module IiifPrint
  module FileSetPresenterDecorator
    # uses Hyku's TenantConfig to determine whether to allow PDF splitting button
    def show_split_button?
      return parent.try(:split_pdfs?) if parent.respond_to?(:split_pdfs?)
      true
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
iiif_print-2.0.1 app/presenters/iiif_print/file_set_presenter_decorator.rb
iiif_print-2.0.0 app/presenters/iiif_print/file_set_presenter_decorator.rb