app/controllers/records_controller.rb
# Displays the form to merge records
Displays the form to merge records
Displays the form to merge records
def new_merge
    if LocalAuthority.local_authority?(@record)
      new_merge_form
    else
      flash[:alert] = "This record cannot be merged.  "\
                      "Only local authority records can be merged."
      redirect_to local_authorities_path
    end
  end
def new_merge if LocalAuthority . local_authority? ( @record ) new_merge_form else flash [ :alert ] = "This record cannot be merged.  " "Only local authority records can be merged." redirect_to local_authorities_path end end
Displays the form to merge records
Displays the form to merge records