Fix new rubocop warnings

This commit is contained in:
Tom Hughes 2021-12-28 18:46:05 +00:00
parent c6587706e6
commit fea1b5b88d
11 changed files with 41 additions and 27 deletions

View file

@ -130,7 +130,7 @@ class Relation < ApplicationRecord
end
def tags
@tags ||= relation_tags.collect { |t| [t.k, t.v] }.to_h
@tags ||= relation_tags.to_h { |t| [t.k, t.v] }
end
attr_writer :members, :tags