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
bed133d0
Commit
bed133d0
authored
Jan 29, 2011
by
Weston Triemstra
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
trying qichunren's fix
parent
280a9e56
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
annotate_models.rake
lib/tasks/annotate_models.rake
+2
-2
No files found.
lib/tasks/annotate_models.rake
View file @
bed133d0
desc
"Add schema information (as comments) to model and fixture files"
desc
"Add schema information (as comments) to model and fixture files"
task
:annotate_models
=>
:environment
do
task
:annotate_models
=>
:environment
do
require
'annotate/annotate_models'
require
File
.
join
(
File
.
dirname
(
__FILE__
),
'..'
,
'annotate/annotate_models'
)
options
=
{}
options
=
{}
options
[
:position_in_class
]
=
ENV
[
'position_in_class'
]
||
ENV
[
'position'
]
||
:before
options
[
:position_in_class
]
=
ENV
[
'position_in_class'
]
||
ENV
[
'position'
]
||
:before
options
[
:position_in_factory
]
=
ENV
[
'position_in_factory'
]
||
ENV
[
'position'
]
||
:before
options
[
:position_in_factory
]
=
ENV
[
'position_in_factory'
]
||
ENV
[
'position'
]
||
:before
...
@@ -15,7 +15,7 @@ end
...
@@ -15,7 +15,7 @@ end
desc
"Remove schema information from model and fixture files"
desc
"Remove schema information from model and fixture files"
task
:remove_annotation
=>
:environment
do
task
:remove_annotation
=>
:environment
do
require
'annotate/annotate_models'
require
File
.
join
(
File
.
dirname
(
__FILE__
),
'..'
,
'annotate/annotate_models'
)
options
=
{}
options
=
{}
options
[
:model_dir
]
=
ENV
[
'model_dir'
]
options
[
:model_dir
]
=
ENV
[
'model_dir'
]
AnnotateModels
.
remove_annotations
(
options
)
AnnotateModels
.
remove_annotations
(
options
)
...
...
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