Fix all Layout/SpaceAroundEqualsInParameterDefault rubocop issues from rubocop_todo list
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user