File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -23,8 +23,8 @@ class Dojo < ApplicationRecord
23
23
validates :description , presence : true , length : { maximum : 50 }
24
24
validates :logo , presence : false
25
25
validates :tags , presence : true
26
- validate :number_of_tags
27
26
validates :url , presence : true
27
+ #validate :number_of_tags
28
28
29
29
class << self
30
30
def load_attributes_from_yaml
@@ -69,10 +69,12 @@ def annual_count(period)
69
69
70
70
private
71
71
72
- def number_of_tags
73
- num_of_tags = self . tags . length
74
- if num_of_tags > 5
75
- errors . add ( :number_of_tags , 'should be 1 to 5' )
76
- end
77
- end
72
+ # Now 6+ tags are available since this PR:
73
+ # https://github.com/coderdojo-japan/coderdojo.jp/pull/1697
74
+ #def number_of_tags
75
+ # num_of_tags = self.tags.length
76
+ # if num_of_tags > 5
77
+ # errors.add(:number_of_tags, 'should be 1 to 5')
78
+ # end
79
+ #end
78
80
end
You can’t perform that action at this time.
0 commit comments