Skip to content

Commit 03d8612

Browse files
committed
Fix validation
1 parent 4fd642e commit 03d8612

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

app/controllers/projects_controller.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -165,17 +165,17 @@ def ship
165165
end
166166

167167
repo_linked = @project.repo_link.present?
168-
desc_ok = true # @project.description.to_s.strip.length >= 50
169-
journal_ok = true # @project.journal_entries.count >= 3
170-
banner_ok = true # @project.banner.attached?
168+
desc_ok = @project.description.to_s.strip.length >= 50
169+
journal_ok = @project.journal_entries.count >= 3
170+
banner_ok = @project.banner.attached?
171171

172172
@checks = [
173173
{ msg: "GitHub repo linked", met: repo_linked },
174174
{ key: "bom", msg: "Bill of materials (bom.csv) present", met: nil },
175175
{ key: "readme", msg: "README.md present", met: nil },
176176
{ msg: "Description is at least 50 characters on Blueprint", met: desc_ok },
177177
{ msg: "Project has 3 journal entries", met: journal_ok },
178-
{ msg: "Banner image uploaded", met: banner_ok }
178+
{ msg: "Uploaded a Banner image", met: banner_ok }
179179
]
180180

181181
@base_ok = repo_linked && desc_ok && journal_ok && banner_ok

0 commit comments

Comments
 (0)