Module: ProjectFeaturesCompatibility

Extended by:
ActiveSupport::Concern
Included in:
Project
Defined in:
app/models/concerns/project_features_compatibility.rb

Instance Method Summary collapse

Instance Method Details

#builds_access_level=(value) ⇒ Object


45
46
47
# File 'app/models/concerns/project_features_compatibility.rb', line 45

def builds_access_level=(value)
  write_feature_attribute_string(:builds_access_level, value)
end

#builds_enabled=(value) ⇒ Object

TODO: remove in API v5, replaced by *_access_level


18
19
20
# File 'app/models/concerns/project_features_compatibility.rb', line 18

def builds_enabled=(value)
  write_feature_attribute_boolean(:builds_access_level, value)
end

#forking_access_level=(value) ⇒ Object


53
54
55
# File 'app/models/concerns/project_features_compatibility.rb', line 53

def forking_access_level=(value)
  write_feature_attribute_string(:forking_access_level, value)
end

#issues_access_level=(value) ⇒ Object


57
58
59
# File 'app/models/concerns/project_features_compatibility.rb', line 57

def issues_access_level=(value)
  write_feature_attribute_string(:issues_access_level, value)
end

#issues_enabled=(value) ⇒ Object

TODO: remove in API v5, replaced by *_access_level


28
29
30
# File 'app/models/concerns/project_features_compatibility.rb', line 28

def issues_enabled=(value)
  write_feature_attribute_boolean(:issues_access_level, value)
end

#merge_requests_access_level=(value) ⇒ Object


49
50
51
# File 'app/models/concerns/project_features_compatibility.rb', line 49

def merge_requests_access_level=(value)
  write_feature_attribute_string(:merge_requests_access_level, value)
end

#merge_requests_enabled=(value) ⇒ Object

TODO: remove in API v5, replaced by *_access_level


23
24
25
# File 'app/models/concerns/project_features_compatibility.rb', line 23

def merge_requests_enabled=(value)
  write_feature_attribute_boolean(:merge_requests_access_level, value)
end

#metrics_dashboard_access_level=(value) ⇒ Object


69
70
71
# File 'app/models/concerns/project_features_compatibility.rb', line 69

def metrics_dashboard_access_level=(value)
  write_feature_attribute_string(:metrics_dashboard_access_level, value)
end

#operations_access_level=(value) ⇒ Object


73
74
75
# File 'app/models/concerns/project_features_compatibility.rb', line 73

def operations_access_level=(value)
  write_feature_attribute_string(:operations_access_level, value)
end

#pages_access_level=(value) ⇒ Object


65
66
67
# File 'app/models/concerns/project_features_compatibility.rb', line 65

def pages_access_level=(value)
  write_feature_attribute_string(:pages_access_level, value)
end

#repository_access_level=(value) ⇒ Object


37
38
39
# File 'app/models/concerns/project_features_compatibility.rb', line 37

def repository_access_level=(value)
  write_feature_attribute_string(:repository_access_level, value)
end

#snippets_access_level=(value) ⇒ Object


61
62
63
# File 'app/models/concerns/project_features_compatibility.rb', line 61

def snippets_access_level=(value)
  write_feature_attribute_string(:snippets_access_level, value)
end

#snippets_enabled=(value) ⇒ Object

TODO: remove in API v5, replaced by *_access_level


33
34
35
# File 'app/models/concerns/project_features_compatibility.rb', line 33

def snippets_enabled=(value)
  write_feature_attribute_boolean(:snippets_access_level, value)
end

#wiki_access_level=(value) ⇒ Object


41
42
43
# File 'app/models/concerns/project_features_compatibility.rb', line 41

def wiki_access_level=(value)
  write_feature_attribute_string(:wiki_access_level, value)
end

#wiki_enabled=(value) ⇒ Object

TODO: remove in API v5, replaced by *_access_level


13
14
15
# File 'app/models/concerns/project_features_compatibility.rb', line 13

def wiki_enabled=(value)
  write_feature_attribute_boolean(:wiki_access_level, value)
end