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
2a073c8f
Commit
2a073c8f
authored
Dec 25, 2015
by
Akira Matsuda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
⚠
"shadowing outer local variable - file"
parent
692f5faf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
annotate_models.rb
lib/annotate/annotate_models.rb
+6
-6
No files found.
lib/annotate/annotate_models.rb
View file @
2a073c8f
...
...
@@ -418,8 +418,8 @@ module AnnotateModels
unless
options
[
exclusion_key
]
did_annotate
=
self
.
get_patterns
(
key
).
map
{
|
f
ile
|
resolve_filename
(
file
,
model_name
,
table_name
)
}.
map
{
|
f
ile
|
annotate_one_file
(
file
,
info
,
position_key
,
options_with_position
(
options
,
position_key
))
}.
map
{
|
f
|
resolve_filename
(
f
,
model_name
,
table_name
)
}.
map
{
|
f
|
annotate_one_file
(
f
,
info
,
position_key
,
options_with_position
(
options
,
position_key
))
}.
detect
{
|
result
|
result
}
||
did_annotate
end
end
...
...
@@ -567,10 +567,10 @@ module AnnotateModels
deannotated_klass
=
true
if
(
remove_annotation_of_file
(
model_file_name
))
get_patterns
.
map
{
|
f
ile
|
resolve_filename
(
file
,
model_name
,
table_name
)
}.
each
do
|
f
ile
|
if
File
.
exist?
(
f
ile
)
remove_annotation_of_file
(
f
ile
)
map
{
|
f
|
resolve_filename
(
f
,
model_name
,
table_name
)
}.
each
do
|
f
|
if
File
.
exist?
(
f
)
remove_annotation_of_file
(
f
)
deannotated_klass
=
true
end
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