You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
460 B

13 years ago
class RecordsController < ApplicationController
active_scaffold :record do |conf|
13 years ago
conf.sti_children = [:SOA, :NS]
13 years ago
conf.columns = [:name, :type, :content, :ttl, :prio, :change_date]
13 years ago
end
before_filter :ensure_nested_under_domain
13 years ago
protected
def beginning_of_chain
super.readonly(false)
end
def ensure_nested_under_domain
raise CanCan::AccessDenied, "not found" unless nested? and nested_parent_record.is_a?(Domain)
end
13 years ago
end