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
5997da96
Commit
5997da96
authored
Jul 09, 2010
by
James McCarthy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes annotate_models rake task failing on require 'annotate/annotate_models'
parent
9c68c8c9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
annotate_models.rake
lib/tasks/annotate_models.rake
+2
-2
annotate_routes.rake
lib/tasks/annotate_routes.rake
+1
-1
No files found.
lib/tasks/annotate_models.rake
View file @
5997da96
desc
"Add schema information (as comments) to model and fixture files"
task
:annotate_models
=>
:environment
do
require
'annotate/annotate_models'
require
File
.
join
(
File
.
dirname
(
__FILE__
),
'..'
,
'annotate/annotate_models'
)
options
=
{}
options
[
:position_in_class
]
=
ENV
[
'position_in_class'
]
||
ENV
[
'position'
]
||
:before
options
[
:position_in_fixture
]
=
ENV
[
'position_in_fixture'
]
||
ENV
[
'position'
]
||
:before
...
...
@@ -14,7 +14,7 @@ end
desc
"Remove schema information from model and fixture files"
task
:remove_annotation
=>
:environment
do
require
'annotate/annotate_models'
require
File
.
join
(
File
.
dirname
(
__FILE__
),
'..'
,
'annotate/annotate_models'
)
options
=
{}
options
[
:model_dir
]
=
ENV
[
'model_dir'
]
AnnotateModels
.
remove_annotations
(
options
)
...
...
lib/tasks/annotate_routes.rake
View file @
5997da96
desc
"Prepends the route map to the top of routes.rb"
task
:annotate_routes
do
require
'annotate/annotate_routes'
require
File
.
join
(
File
.
dirname
(
__FILE__
),
'..'
,
'annotate/annotate_models'
)
AnnotateRoutes
.
do_annotate
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