config/initializers/tramway.rb in tramway-page-1.5.1.1 vs config/initializers/tramway.rb in tramway-page-1.5.2

- old
+ new

@@ -1,3 +1,20 @@ # frozen_string_literal: true ::Tramway::Admin.set_available_models(::Tramway::Page::Page, project: :page) +::Tramway::Admin.set_additional_buttons( + { + ::Tramway::Page::Page => { + show: [ + lambda { |record| + { + url: Tramway::Page::Engine.routes.url_helpers.preview_path(id: record.id), + method: :get, + text: 'Preview', + color: :primary + } + } + ] + } + }, + project: :subberz +)