config/initializers/tramway.rb in tramway-page-1.5.4 vs config/initializers/tramway.rb in tramway-page-1.5.4.1
- old
+ new
@@ -1,20 +1,3 @@
# 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
-)