lib/generators/blacklight_gallery/install_generator.rb in blacklight-gallery-3.5.0 vs lib/generators/blacklight_gallery/install_generator.rb in blacklight-gallery-4.0.0

- old
+ new

@@ -14,13 +14,12 @@ end end def configuration inject_into_file 'app/controllers/catalog_controller.rb', after: "configure_blacklight do |config|" do - "\n config.view.gallery.document_component = Blacklight::Gallery::DocumentComponent" \ - "\n # config.view.gallery.classes = 'row-cols-2 row-cols-md-3'" \ - "\n config.view.masonry.document_component = Blacklight::Gallery::DocumentComponent" \ - "\n config.view.slideshow.document_component = Blacklight::Gallery::SlideshowComponent" \ + "\n config.view.gallery(document_component: Blacklight::Gallery::DocumentComponent)" \ + "\n config.view.masonry(document_component: Blacklight::Gallery::DocumentComponent)" \ + "\n config.view.slideshow(document_component: Blacklight::Gallery::SlideshowComponent)" \ "\n config.show.tile_source_field = :content_metadata_image_iiif_info_ssm" \ "\n config.show.partials.insert(1, :openseadragon)" end end