Fix new rubocop warnings
This commit is contained in:
parent
c6587706e6
commit
fea1b5b88d
11 changed files with 41 additions and 27 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue