Improve RuboCop rules (compatibility to Code Climate) (#3636)

https://github.com/codeclimate/codeclimate-rubocop/blob/08f8de84ebfb39caa96391e23816877278f6441c/Gemfile.lock#L38
Code Climate is using RuboCop v0.46.0.

Change several rules to maintain compatibility.
This commit is contained in:
Yamagishi Kazutoshi
2017-06-08 20:24:28 +09:00
committed by Eugen Rochko
parent 7d2b4186c3
commit 0a0b9a271a
12 changed files with 33 additions and 14 deletions
@@ -51,7 +51,7 @@ class Api::V1::NotificationsController < Api::BaseController
end
def target_statuses_from_notifications
@notifications.select { |notification| !notification.target_status.nil? }.map(&:target_status)
@notifications.reject { |notification| notification.target_status.nil? }.map(&:target_status)
end
def insert_pagination_headers