class TrustyCms::AdminUI
def load_default_user_regions
def load_default_user_regions OpenStruct.new.tap do |user| user.preferences = RegionSet.new do |preferences| preferences.main.concat %w{edit_header edit_form} preferences.form.concat %w{edit_name edit_email edit_username edit_password edit_locale} preferences.form_bottom.concat %w{edit_buttons} end user.edit = RegionSet.new do |edit| edit.main.concat %w{edit_header edit_form} edit.form.concat %w{edit_name edit_email edit_username edit_password edit_roles edit_locale edit_notes} edit.form_bottom.concat %w{edit_buttons edit_timestamp} end user.index = RegionSet.new do |index| index.thead.concat %w{title_header roles_header actions_header} index.tbody.concat %w{title_cell roles_cell actions_cell} index.bottom.concat %w{new_button} end user.new = user.edit end end