class Administrate::Page::Show
Attributes
resource[R]
Public Class Methods
new(dashboard, resource)
click to toggle source
Calls superclass method
Administrate::Page::Base::new
# File lib/administrate/page/show.rb, line 6 def initialize(dashboard, resource) super(dashboard) @resource = resource end
Public Instance Methods
attributes()
click to toggle source
# File lib/administrate/page/show.rb, line 17 def attributes dashboard.show_page_attributes.map do |attr_name| attribute_field(dashboard, resource, attr_name, :show) end end
page_title()
click to toggle source
# File lib/administrate/page/show.rb, line 13 def page_title dashboard.display_resource(resource) end