Sha256: 64c0eae67cd027b07f52a5ad3ef8aaf5cd38b6d78485f00996fd88e741fe5c2f
Contents?: true
Size: 692 Bytes
Versions: 8
Compression:
Stored size: 692 Bytes
Contents
module Forms module Interface module Forms def self.included(base) base.class_eval do attr_accessor :form alias_method :forms, :form protected def load_default_form_regions returning OpenStruct.new do |form| form.edit = Radiant::AdminUI::RegionSet.new do |edit| edit.main.concat %w{edit_header edit_form} edit.form.concat %w{edit_title edit_content} edit.form_bottom.concat %w{edit_buttons edit_timestamp} end form.new = form.edit end end end end end end end
Version data entries
8 entries across 8 versions & 1 rubygems