Class: Lcms::Engine::DocumentBundle

Inherits:
ApplicationRecord show all
Defined in:
app/models/lcms/engine/document_bundle.rb

Constant Summary collapse

CATEGORIES =
%w(full tm sm).freeze
CONTENT_TYPES =
%w(pdf gdoc).freeze

Class Method Summary collapse

Class Method Details

.update_bundle(resource, category = 'full') ⇒ Object



17
18
19
20
# File 'app/models/lcms/engine/document_bundle.rb', line 17

def self.update_bundle(resource, category = 'full')
  update_pdf_bundle(resource, category)
  update_gdoc_bundle(resource) if category == 'full'
end