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