|
|
|
@ -16,11 +16,7 @@ class CnamesController < ApplicationController
|
|
|
|
|
|
|
|
|
|
# override to use :mx_records instead of :records assoc |
|
|
|
|
def beginning_of_chain |
|
|
|
|
if nested? && nested.association && nested.association.collection? && nested.association.name == :records |
|
|
|
|
nested.parent_scope.cname_records |
|
|
|
|
else |
|
|
|
|
super |
|
|
|
|
end |
|
|
|
|
nested_via_records? ? nested.parent_scope.cname_records : super |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
# override, we make our own sti logic |
|
|
|
|