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_first_name edit_last_name edit_email edit_password} 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_first_name edit_last_name edit_email edit_password edit_roles 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 last_sign_in_at_header} index.tbody.concat %w{title_cell roles_cell actions_cell last_sign_in_at_cell} index.bottom.concat %w{new_button} end user.new = user.edit user.remove = user.edit end end