class DomainsController < ApplicationController begin active_scaffold :domain do |conf| conf.columns = [:name, :records] conf.create.columns = [:name] conf.update.columns = [:name] conf.actions.exclude :show conf.list.sorting = { :name => :asc } end rescue => e puts e.backtrace raise e end protected def before_create_save(record) record.type = 'NATIVE' end end