Skip to content

Commit

Permalink
replace self with model name
Browse files Browse the repository at this point in the history
In the image and generic work decorator we cannot use self since we changed how this class is defined. Otherwise the CreateWorkJob errors with 'NameError: wrong constant name main'.
  • Loading branch information
ShanaLMoore committed Oct 3, 2023
1 parent 99313af commit f104267
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/models/generic_work_decorator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
GenericWork.include(DogBiscuits::PlaceOfPublication)
GenericWork.include(SlugBug)
GenericWork.include(IiifPrint.model_configuration(
pdf_split_child_model: self,
pdf_split_child_model: GenericWork,
pdf_splitter_service: IiifPrint::SplitPdfs::AdventistPagesToJpgsSplitter,
derivative_service_plugins: [
IiifPrint::TextExtractionDerivativeService
Expand Down
2 changes: 1 addition & 1 deletion app/models/image_decorator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
Image.include(DogBiscuits::PartOf)
Image.include(DogBiscuits::PlaceOfPublication)
Image.include(IiifPrint.model_configuration(
pdf_split_child_model: self,
pdf_split_child_model: Image,
pdf_splitter_service: IiifPrint::SplitPdfs::AdventistPagesToJpgsSplitter,
derivative_service_plugins: [
IiifPrint::TextExtractionDerivativeService
Expand Down

0 comments on commit f104267

Please sign in to comment.