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
8b50c96b
Commit
8b50c96b
authored
Oct 15, 2010
by
miyucy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
increased deletion target
parent
5356f242
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
annotate_models.rb
lib/annotate/annotate_models.rb
+9
-4
No files found.
lib/annotate/annotate_models.rb
View file @
8b50c96b
...
@@ -302,16 +302,21 @@ module AnnotateModels
...
@@ -302,16 +302,21 @@ module AnnotateModels
if
klass
<
ActiveRecord
::
Base
&&
!
klass
.
abstract_class?
if
klass
<
ActiveRecord
::
Base
&&
!
klass
.
abstract_class?
deannotated
<<
klass
deannotated
<<
klass
model_name
=
klass
.
name
.
underscore
model_file_name
=
File
.
join
(
model_dir
,
file
)
model_file_name
=
File
.
join
(
model_dir
,
file
)
remove_annotation_of_file
(
model_file_name
)
remove_annotation_of_file
(
model_file_name
)
[
[
File
.
join
(
UNIT_TEST_DIR
,
"
#{
klass
.
name
.
underscor
e
}
_test.rb"
),
File
.
join
(
UNIT_TEST_DIR
,
"
#{
model_nam
e
}
_test.rb"
),
File
.
join
(
SPEC_MODEL_DIR
,
"
#{
klass
.
name
.
underscor
e
}
_spec.rb"
),
File
.
join
(
SPEC_MODEL_DIR
,
"
#{
model_nam
e
}
_spec.rb"
),
File
.
join
(
FIXTURE_TEST_DIR
,
"
#{
klass
.
table_name
}
.yml"
),
# fixture
File
.
join
(
FIXTURE_TEST_DIR
,
"
#{
klass
.
table_name
}
.yml"
),
# fixture
File
.
join
(
FIXTURE_SPEC_DIR
,
"
#{
klass
.
table_name
}
.yml"
),
# fixture
File
.
join
(
FIXTURE_SPEC_DIR
,
"
#{
klass
.
table_name
}
.yml"
),
# fixture
File
.
join
(
FACTORY_GIRL_SPEC_DIR
,
"
#{
klass
.
name
.
underscore
}
_factory.rb"
),
File
.
join
(
EXEMPLARS_TEST_DIR
,
"
#{
model_name
}
_exemplar.rb"
),
# Object Daddy
File
.
join
(
FACTORY_GIRL_TEST_DIR
,
"
#{
klass
.
name
.
underscore
}
_factory.rb"
),
File
.
join
(
EXEMPLARS_SPEC_DIR
,
"
#{
model_name
}
_exemplar.rb"
),
# Object Daddy
File
.
join
(
BLUEPRINTS_TEST_DIR
,
"
#{
model_name
}
_blueprint.rb"
),
# Machinist Blueprints
File
.
join
(
BLUEPRINTS_SPEC_DIR
,
"
#{
model_name
}
_blueprint.rb"
),
# Machinist Blueprints
File
.
join
(
FACTORY_GIRL_TEST_DIR
,
"
#{
model_name
}
_factory.rb"
),
# Factory Girl Factories
File
.
join
(
FACTORY_GIRL_SPEC_DIR
,
"
#{
model_name
}
_factory.rb"
),
# Factory Girl Factories
].
each
do
|
file
|
].
each
do
|
file
|
remove_annotation_of_file
(
file
)
if
File
.
exist?
(
file
)
remove_annotation_of_file
(
file
)
if
File
.
exist?
(
file
)
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