Sha256: 70c560fad5f1131172bc8860063ffbcc39d49bde5c397a8e77d456445b475fc9
Contents?: true
Size: 503 Bytes
Versions: 11
Compression:
Stored size: 503 Bytes
Contents
require_relative "base" module Administrate module Page class Form < Page::Base def initialize(dashboard, resource) super(dashboard) @resource = resource end attr_reader :resource def attributes dashboard.form_attributes.map do |attribute| attribute_field(dashboard, resource, attribute, :form) end end def page_title resource.to_s end protected attr_reader :dashboard end end end
Version data entries
11 entries across 11 versions & 1 rubygems