Browse Source

fix some update errors

pull/1/head
Nicolae Claudius 13 years ago
parent
commit
c1a8dbecd8
  1. 2
      app/controllers/aaaas_controller.rb
  2. 2
      app/controllers/as_controller.rb
  3. 2
      app/controllers/cnames_controller.rb
  4. 3
      app/controllers/domains_controller.rb
  5. 2
      app/controllers/mxes_controller.rb
  6. 2
      app/controllers/ns_controller.rb
  7. 2
      app/controllers/srvs_controller.rb
  8. 2
      app/controllers/txts_controller.rb

2
app/controllers/aaaas_controller.rb

@ -15,7 +15,7 @@ class AaaasController < ApplicationController
# override to use :mx_records instead of :records assoc # override to use :mx_records instead of :records assoc
def beginning_of_chain 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 end
# override, we make our own sti logic # override, we make our own sti logic

2
app/controllers/as_controller.rb

@ -15,7 +15,7 @@ class AsController < ApplicationController
# override to use :mx_records instead of :records assoc # override to use :mx_records instead of :records assoc
def beginning_of_chain def beginning_of_chain
nested_via_records? ? nested.parent_scope.a_records : super (nested_via_records? ? nested.parent_scope.a_records : super).readonly(false)
end end
# override, we make our own sti logic # override, we make our own sti logic

2
app/controllers/cnames_controller.rb

@ -16,7 +16,7 @@ class CnamesController < ApplicationController
# override to use :mx_records instead of :records assoc # override to use :mx_records instead of :records assoc
def beginning_of_chain def beginning_of_chain
nested_via_records? ? nested.parent_scope.cname_records : super (nested_via_records? ? nested.parent_scope.cname_records : super).readonly(false)
end end
# override, we make our own sti logic # override, we make our own sti logic

3
app/controllers/domains_controller.rb

@ -1,5 +1,4 @@
class DomainsController < ApplicationController class DomainsController < ApplicationController
active_scaffold :domain do |conf| active_scaffold :domain do |conf|
conf.columns = [:name, :ip, :records, :soa_record, :ns_records] conf.columns = [:name, :ip, :records, :soa_record, :ns_records]
conf.list.columns = [:name, :records, :permissions] conf.list.columns = [:name, :records, :permissions]

2
app/controllers/mxes_controller.rb

@ -23,7 +23,7 @@ class MxesController < ApplicationController
# override to use :mx_records instead of :records assoc # override to use :mx_records instead of :records assoc
def beginning_of_chain def beginning_of_chain
nested_via_records? ? nested.parent_scope.mx_records : super (nested_via_records? ? nested.parent_scope.mx_records : super).readonly(false)
end end
# override, we make our own sti logic # override, we make our own sti logic

2
app/controllers/ns_controller.rb

@ -15,7 +15,7 @@ class NsController < ApplicationController
# override to use :mx_records instead of :records assoc # override to use :mx_records instead of :records assoc
def beginning_of_chain def beginning_of_chain
nested_via_records? ? nested.parent_scope.ns_records : super (nested_via_records? ? nested.parent_scope.ns_records : super).readonly(false)
end end
# override, we make our own sti logic # override, we make our own sti logic

2
app/controllers/srvs_controller.rb

@ -20,7 +20,7 @@ class SrvsController < ApplicationController
# override to use :mx_records instead of :records assoc # override to use :mx_records instead of :records assoc
def beginning_of_chain def beginning_of_chain
nested_via_records? ? nested.parent_scope.srv_records : super (nested_via_records? ? nested.parent_scope.srv_records : super).readonly(false)
end end
# override, we make our own sti logic # override, we make our own sti logic

2
app/controllers/txts_controller.rb

@ -15,7 +15,7 @@ class TxtsController < ApplicationController
# override to use :mx_records instead of :records assoc # override to use :mx_records instead of :records assoc
def beginning_of_chain def beginning_of_chain
nested_via_records? ? nested.parent_scope.txt_records : super (nested_via_records? ? nested.parent_scope.txt_records : super).readonly(false)
end end
# override, we make our own sti logic # override, we make our own sti logic

Loading…
Cancel
Save