Repository URL to install this package:
|
Version:
0.19.0 ▾
|
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