Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
annotate
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open-source
annotate
Commits
9cdf2d34
Commit
9cdf2d34
authored
7 years ago
by
0x01f7
Committed by
Cuong Tran
7 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix parsing bug in bin/annotate (#531) (#534)
parent
ba95021a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
annotate_models.rb
lib/annotate/annotate_models.rb
+2
-1
No files found.
lib/annotate/annotate_models.rb
View file @
9cdf2d34
...
@@ -745,7 +745,8 @@ module AnnotateModels
...
@@ -745,7 +745,8 @@ module AnnotateModels
end
end
def
split_model_dir
(
option_value
)
def
split_model_dir
(
option_value
)
option_value
.
split
(
','
).
map
(
&
:strip
).
reject
(
&
:empty?
)
option_value
=
option_value
.
is_a?
(
Array
)
?
option_value
:
option_value
.
split
(
','
)
option_value
.
map
(
&
:strip
).
reject
(
&
:empty?
)
end
end
# We're passed a name of things that might be
# We're passed a name of things that might be
...
...
This diff is collapsed.
Click to expand it.
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