From 5ac4ca88d7532981b96f6fa3999fd3af36d03449 Mon Sep 17 00:00:00 2001 From: Nicolae Claudius Date: Sun, 18 Sep 2011 10:04:38 -0700 Subject: [PATCH] ignore domain#master, domain#type allways 'NATIVE' --- app/controllers/domains_controller.rb | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/app/controllers/domains_controller.rb b/app/controllers/domains_controller.rb index 578d937..4e97616 100644 --- a/app/controllers/domains_controller.rb +++ b/app/controllers/domains_controller.rb @@ -1,5 +1,12 @@ class DomainsController < ApplicationController active_scaffold :domain do |conf| - conf.columns = [:name, :master, :last_check, :type, :notified_serial, :account] + conf.columns = [:name, :last_check, :notified_serial, :account] end + + protected + + def before_create_save(record) + record.type = 'NATIVE' + end + end