diff options
author | Rémy Coutable <remy@rymai.me> | 2017-06-02 20:11:26 +0300 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2017-06-02 20:11:26 +0300 |
commit | 4cfa5ce4a95379a9ebe08f57b170af4b5ee9a9a5 (patch) | |
tree | cf94edeb5c02688e6e07ad8e27ceb1a6345b100c /app/models/list.rb | |
parent | 1e8dbd46758d5c9772baf233ebcff889dc742d3d (diff) |
Enable the Style/PreferredHashMethods cop
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'app/models/list.rb')
-rw-r--r-- | app/models/list.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/list.rb b/app/models/list.rb index fbd19acd1f5..ba7353a1325 100644 --- a/app/models/list.rb +++ b/app/models/list.rb @@ -28,7 +28,7 @@ class List < ActiveRecord::Base def as_json(options = {}) super(options).tap do |json| - if options.has_key?(:label) + if options.key?(:label) json[:label] = label.as_json( project: board.project, only: [:id, :title, :description, :color] |