Fix all Layout/SpaceInLambdaLiteral rubocop issues and remove files from rubocop_todo list

This commit is contained in:
Bertocq
2017-06-26 18:05:14 +02:00
parent f6fe9cc7d2
commit c4d90691b1
8 changed files with 14 additions and 25 deletions

View File

@@ -56,7 +56,7 @@ class User < ActiveRecord::Base
scope :officials, -> { where("official_level > 0") }
scope :newsletter, -> { where(newsletter: true) }
scope :for_render, -> { includes(:organization) }
scope :by_document, -> (document_type, document_number) { where(document_type: document_type, document_number: document_number) }
scope :by_document, ->(document_type, document_number) { where(document_type: document_type, document_number: document_number) }
scope :email_digest, -> { where(email_digest: true) }
scope :active, -> { where(erased_at: nil) }
scope :erased, -> { where.not(erased_at: nil) }