class ExternalUsers::Litigators::InterimClaimsController < ExternalUsers::ClaimsController

  skip_load_and_authorize_resource

  def new
    @claim = Claim::InterimClaim.new
    super
  end

  def create
    @claim = Claim::InterimClaim.new(params_with_external_user_and_creator)
    super
  end

private

  def update_claim_document_owners(claim)
    claim.documents.each { |d| d.update_column(:creator_id, claim.creator_id) }
  end

  def load_external_users_in_provider
    @litigators_in_provider = @provider.litigators if @external_user.admin?
  end

  def build_nested_resources
    [:misc_fees, :disbursements].each do |association|
      build_nested_resource(@claim, association)
    end

    super
  end
end

class ExternalUsers::Litigators::InterimClaimsController < ExternalUsers::ClaimsController

  skip_load_and_authorize_resource

  def new
    @claim = Claim::InterimClaim.new
    super
  end

  def create
    @claim = Claim::InterimClaim.new(params_with_external_user_and_creator)
    super
  end

private

  def update_claim_document_owners(claim)
    claim.documents.each { |d| d.update_column(:creator_id, claim.creator_id) }
  end

  def load_external_users_in_provider
    @litigators_in_provider = @provider.litigators if @external_user.admin?
  end

  def build_nested_resources
    @claim.build_interim_fee if @claim.interim_fee.nil?
    @claim.build_warrant_fee if @claim.warrant_fee.nil?

    [:disbursements].each do |association|
      build_nested_resource(@claim, association)
    end

    super
  end
end

Fix building of associations on interim claims controller
Fix building of associations on interim claims controller
