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
14685d41
Commit
14685d41
authored
Oct 15, 2010
by
miyucy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove unnecessary rake
parent
28798b1e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
31 deletions
+0
-31
annotate.rake
lib/tasks/annotate.rake
+0
-31
No files found.
lib/tasks/annotate.rake
deleted
100644 → 0
View file @
28798b1e
def
is_plugin?
(
defined?
ANNOTATE_MODELS_PREFS
::
USE_PLUGIN
)
&&
(
!
ANNOTATE_MODELS_PREFS
::
USE_PLUGIN
.
nil?
)
?
ANNOTATE_MODELS_PREFS
::
USE_PLUGIN
:
false
end
desc
"Add schema information (as comments) to model and fixture files"
task
:annotate_models
=>
:environment
do
if
is_plugin?
require
File
.
expand_path
(
File
.
dirname
(
__FILE__
)
+
'/../annotate/annotate_models'
)
else
require
'annotate_models'
end
options
=
{}
options
[
:position_in_class
]
=
ENV
[
'position_in_class'
]
||
ENV
[
'position'
]
options
[
:position_in_fixture
]
=
ENV
[
'position_in_fixture'
]
||
ENV
[
'position'
]
options
[
:include_version
]
=
ENV
[
'include_version'
]
AnnotateModels
.
do_annotations
(
options
)
end
desc
"Remove schema information from model and fixture files"
task
:remove_annotation
=>
:environment
do
if
is_plugin?
require
File
.
expand_path
(
File
.
dirname
(
__FILE__
)
+
'/../annotate/annotate_models'
)
else
require
'annotate_models'
end
AnnotateModels
.
remove_annotations
end
\ No newline at end of file
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