app/services/merge_records_service.rb
# Currently the only types of records we are allowed to merge
# are local authority records.
Currently the only types of records we are allowed to merge
are local authority records.
Currently the only types of records we are allowed to merge are local authority records .
def validate_records_are_local_authorities
      return if [old_reference, new_reference].all? do |ref|
        LocalAuthority.local_authority?(ref)
      end
      raise IncompatibleMergeError,
            "Error: Cannot merge records that are not local authority records."
    end
def validate_records_are_local_authorities return if [ old_reference , new_reference ] . all? do | ref | LocalAuthority . local_authority? ( ref ) end raise IncompatibleMergeError , "Error: Cannot merge records that are not local authority records." end
Currently the only types of records we are allowed to merge
are local authority records.
Currently the only types of records we are allowed to merge are local authority records .