@@ -19,57 +19,6 @@ class Document < ApplicationRecord
19
19
validate :location_uniqueness_check
20
20
validate :document_type_uniqueness_check
21
21
22
- VALID_NAMES = [
23
- 'Terms of Service' ,
24
- 'Privacy Policy' ,
25
- 'Imprint' ,
26
- 'Trackers Policy' ,
27
- 'Developer Terms' ,
28
- 'Community Guidelines' ,
29
- 'Deceased Users' ,
30
- 'Acceptable Use Policy' ,
31
- 'Restricted Use Policy' ,
32
- 'Commercial Terms' ,
33
- 'Copyright Claims Policy' ,
34
- 'Law Enforcement Guidelines' ,
35
- 'Human Rights Policy' ,
36
- 'In-App Purchases Policy' ,
37
- 'Review Guidelines' ,
38
- 'Brand Guidelines' ,
39
- 'Quality Guidelines' ,
40
- 'Data Controller Agreement' ,
41
- 'Data Processor Agreement' ,
42
- 'User Consent Policy' ,
43
- 'Closed Captioning Policy' ,
44
- 'Seller Warranty' ,
45
- 'Single Sign-On Policy' ,
46
- 'Vulnerability Disclosure Policy' ,
47
- 'Live Policy' ,
48
- 'Complaints Policy' ,
49
- 'Conditions of Carriage' ,
50
- 'General Conditions of Sale' ,
51
- 'Marketplace Buyers Conditions' ,
52
- 'Marketplace Sellers Conditions' ,
53
- 'Frequently Asked Questions' ,
54
- 'Corporate Social Responsibility' ,
55
- 'Social Media Policy' ,
56
- 'Uniform Disclosure' ,
57
- 'Affiliate Disclosure' ,
58
- 'Safety Guidelines' ,
59
- 'Telephone Communication Guidelines' ,
60
- 'Records Keeping Policy' ,
61
- 'Service Level Agreement' ,
62
- 'Legal Information' ,
63
- 'Policy' ,
64
- 'About' ,
65
- 'Miscellaneous Agreement' ,
66
- 'Ranking Parameters Description' ,
67
- 'Premium Partner Conditions' ,
68
- 'Platform to Business Notice' ,
69
- 'Business Mediation Policy' ,
70
- 'Business Privacy Policy'
71
- ] . freeze
72
-
73
22
def location_uniqueness_check
74
23
doc = Document . where ( url : url , xpath : xpath , status : nil )
75
24
0 commit comments