Run rubocop --fix-layout and remove encoding comments
This commit is contained in:
parent
fa63e6e81d
commit
ea2862fdef
283 changed files with 1164 additions and 1969 deletions
|
|
@ -51,13 +51,13 @@ feature 'admin/configs' do
|
|||
end
|
||||
|
||||
def compact_hash_deep!(h)
|
||||
h.each do |k,v|
|
||||
h.each do |k, v|
|
||||
if v.is_a? Hash
|
||||
compact_hash_deep!(v)
|
||||
v.reject! {|k,v| v.blank?}
|
||||
v.reject! { |k, v| v.blank? }
|
||||
end
|
||||
end
|
||||
h.reject! {|k,v| v.blank?}
|
||||
h.reject! { |k, v| v.blank? }
|
||||
h
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue