@ -15,7 +15,7 @@ class AaaasController < ApplicationController
# override to use :mx_records instead of :records assoc
def beginning_of_chain
nested_via_records? ? nested.parent_scope.aaaa_records : super
(nested_via_records? ? nested.parent_scope.aaaa_records : super).readonly(false)
end
# override, we make our own sti logic
@ -15,7 +15,7 @@ class AsController < ApplicationController
nested_via_records? ? nested.parent_scope.a_records : super
(nested_via_records? ? nested.parent_scope.a_records : super).readonly(false)
@ -16,7 +16,7 @@ class CnamesController < ApplicationController
nested_via_records? ? nested.parent_scope.cname_records : super
(nested_via_records? ? nested.parent_scope.cname_records : super).readonly(false)
@ -1,5 +1,4 @@
class DomainsController < ApplicationController
active_scaffold :domain do |conf|
conf.columns = [:name, :ip, :records, :soa_record, :ns_records]
conf.list.columns = [:name, :records, :permissions]
@ -23,7 +23,7 @@ class MxesController < ApplicationController
nested_via_records? ? nested.parent_scope.mx_records : super
(nested_via_records? ? nested.parent_scope.mx_records : super).readonly(false)
@ -15,7 +15,7 @@ class NsController < ApplicationController
nested_via_records? ? nested.parent_scope.ns_records : super
(nested_via_records? ? nested.parent_scope.ns_records : super).readonly(false)
@ -20,7 +20,7 @@ class SrvsController < ApplicationController
nested_via_records? ? nested.parent_scope.srv_records : super
(nested_via_records? ? nested.parent_scope.srv_records : super).readonly(false)
@ -15,7 +15,7 @@ class TxtsController < ApplicationController
nested_via_records? ? nested.parent_scope.txt_records : super
(nested_via_records? ? nested.parent_scope.txt_records : super).readonly(false)