Sha256: 5d4cbdd3843e5490170c3cfb2ee10514817b53651910f6e05865a639ec2772d3

Contents?: true

Size: 484 Bytes

Versions: 37

Compression:

Stored size: 484 Bytes

Contents

require_relative "base"

module Administrate
  module Page
    class Show < Page::Base
      def initialize(dashboard, resource)
        super(dashboard)
        @resource = resource
      end

      attr_reader :resource

      def page_title
        dashboard.display_resource(resource)
      end

      def attributes
        dashboard.show_page_attributes.map do |attr_name|
          attribute_field(dashboard, resource, attr_name, :show)
        end
      end
    end
  end
end

Version data entries

37 entries across 37 versions & 3 rubygems

Version Path
administrate-0.19.0 lib/administrate/page/show.rb
administrate-0.18.0 lib/administrate/page/show.rb
administrate-0.17.0 lib/administrate/page/show.rb
administrate-0.16.0 lib/administrate/page/show.rb
administrate-0.15.0 lib/administrate/page/show.rb
administrate-0.14.0 lib/administrate/page/show.rb
viniBaxterDesk-22.0.0 lib/administrate/page/show.rb
viniBaxterDesk-0.21.0 lib/administrate/page/show.rb
viniBaxterDesk-0.20.0 lib/administrate/page/show.rb
viniBaxterDesk-0.14.0 lib/administrate/page/show.rb
viniBaxterDesk-0.13.2 lib/administrate/page/show.rb
viniBaxterDesk-0.13.1 lib/administrate/page/show.rb
administrate-0.13.0 lib/administrate/page/show.rb
administrate-0.12.0 lib/administrate/page/show.rb
administrate-0.11.0 lib/administrate/page/show.rb
semantic-administrate-0.10.1 lib/administrate/page/show.rb
semantic-administrate-0.10.0 lib/administrate/page/show.rb
administrate-0.10.0 lib/administrate/page/show.rb
semantic-administrate-0.1.1 lib/administrate/page/show.rb
administrate-0.9.0 lib/administrate/page/show.rb