Fix all Layout/SpaceAroundEqualsInParameterDefault rubocop issues from rubocop_todo list

This commit is contained in:
Bertocq
2017-06-26 18:03:40 +02:00
parent e6dd33bd66
commit d7b8777395
15 changed files with 19 additions and 41 deletions

View File

@@ -44,7 +44,7 @@ class Comment < ActiveRecord::Base
after_create :call_after_commented
def self.build(commentable, user, body, p_id=nil)
def self.build(commentable, user, body, p_id = nil)
new commentable: commentable,
user_id: user.id,
body: body,

View File

@@ -13,7 +13,7 @@ class Officing::Residence
validate :allowed_age
validate :residence_in_madrid
def initialize(attrs={})
def initialize(attrs = {})
super
clean_document_number
end

View File

@@ -2,7 +2,7 @@ class TagCloud
attr_accessor :resource_model, :scope
def initialize(resource_model, scope=nil)
def initialize(resource_model, scope = nil)
@resource_model = resource_model
@scope = scope
end

View File

@@ -17,7 +17,7 @@ class Verification::Residence
validate :allowed_age
validate :document_number_uniqueness
def initialize(attrs={})
def initialize(attrs = {})
self.date_of_birth = parse_date('date_of_birth', attrs)
attrs = remove_date('date_of_birth', attrs)
super