Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
heptapod
heptapod
Commits
12bdd84e3727
Commit
74cefffd
authored
Sep 01, 2016
by
James Lopez
Browse files
fixed spacing
parent
9380236ffe0e
Changes
1
Hide whitespace changes
Inline
Side-by-side
spec/support/import_export/export_file_helper.rb
View file @
12bdd84e
...
...
@@ -64,7 +64,7 @@ def deep_find_with_parent(sensitive_key_word, object, found = nil)
end
end
#Return true if the hash has a key containing a sensitive word
#
Return true if the hash has a key containing a sensitive word
def
object_contains_key?
(
object
,
sensitive_key_word
)
object
.
is_a?
(
Hash
)
&&
object
.
keys
.
any?
{
|
key
|
key
.
include?
(
sensitive_key_word
)
}
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment