From 62d7990b9bb30cf33ed87017c5c633d1cccc75c2 Mon Sep 17 00:00:00 2001 From: Toon Claes Date: Thu, 28 Feb 2019 19:57:34 +0100 Subject: Ran standardrb --fix on the whole codebase Inspired by https://twitter.com/searls/status/1101137953743613952 I decided to try https://github.com/testdouble/standard on our codebase. It's opinionated, but at least it's a _standard_. --- app/models/project_custom_attribute.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/models/project_custom_attribute.rb') diff --git a/app/models/project_custom_attribute.rb b/app/models/project_custom_attribute.rb index 4e767cb3b26..2c6690c6c78 100644 --- a/app/models/project_custom_attribute.rb +++ b/app/models/project_custom_attribute.rb @@ -4,5 +4,5 @@ class ProjectCustomAttribute < ActiveRecord::Base belongs_to :project validates :project, :key, :value, presence: true - validates :key, uniqueness: { scope: [:project_id] } + validates :key, uniqueness: {scope: [:project_id]} end -- cgit v1.2.1