Sha256: b478328feb63ef9d33c1d0b812cdbb8d93f555dbcfb0bc5985e325a44cc02315
Contents?: true
Size: 546 Bytes
Versions: 1
Compression:
Stored size: 546 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(action = nil) dashboard.form_attributes(action).map do |attribute| attribute_field(dashboard, resource, attribute, :form) end end def page_title dashboard.display_resource(resource) end private attr_reader :dashboard end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
administrate-0.19.0 | lib/administrate/page/form.rb |