Sha256: 404ff68b73a60350bed03c2e81485ab331d819814ecf3fecfda0c147754e7624

Contents?: true

Size: 469 Bytes

Versions: 12

Compression:

Stored size: 469 Bytes

Contents

# 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
)

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
tramway-page-1.5.4 config/initializers/tramway.rb
tramway-page-1.5.3.7 config/initializers/tramway.rb
tramway-page-1.5.3.6 config/initializers/tramway.rb
tramway-page-1.5.3.4 config/initializers/tramway.rb
tramway-page-1.5.3.3 config/initializers/tramway.rb
tramway-page-1.5.3.2 config/initializers/tramway.rb
tramway-page-1.5.3.1 config/initializers/tramway.rb
tramway-page-1.5.3 config/initializers/tramway.rb
tramway-page-1.5.2.3 config/initializers/tramway.rb
tramway-page-1.5.2.2 config/initializers/tramway.rb
tramway-page-1.5.2.1 config/initializers/tramway.rb
tramway-page-1.5.2 config/initializers/tramway.rb