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
619d28c0
Commit
619d28c0
authored
Nov 17, 2015
by
Sergey Yazan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rubocop friendly template
single-quoted strings and redundant curly braces around a hash parameter
parent
af4606aa
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
27 deletions
+26
-27
auto_annotate_models.rake
lib/generators/annotate/templates/auto_annotate_models.rake
+26
-27
No files found.
lib/generators/annotate/templates/auto_annotate_models.rake
View file @
619d28c0
...
...
@@ -5,35 +5,34 @@ if Rails.env.development?
task
:set_annotation_options
do
# You can override any of these by setting an environment variable of the
# same name.
Annotate
.
set_defaults
({
'position_in_routes'
=>
"before"
,
'position_in_class'
=>
"before"
,
'position_in_test'
=>
"before"
,
'position_in_fixture'
=>
"before"
,
'position_in_factory'
=>
"before"
,
'position_in_serializer'
=>
"before"
,
'show_foreign_keys'
=>
"true"
,
'show_indexes'
=>
"true"
,
'simple_indexes'
=>
"false"
,
'model_dir'
=>
"app/models"
,
'include_version'
=>
"false"
,
'require'
=>
""
,
'exclude_tests'
=>
"false"
,
'exclude_fixtures'
=>
"false"
,
'exclude_factories'
=>
"false"
,
'exclude_serializers'
=>
"false"
,
'exclude_scaffolds'
=>
"false"
,
'ignore_model_sub_dir'
=>
"false"
,
'skip_on_db_migrate'
=>
"false"
,
'format_bare'
=>
"true"
,
'format_rdoc'
=>
"false"
,
'format_markdown'
=>
"false"
,
'sort'
=>
"false"
,
'force'
=>
"false"
,
'trace'
=>
"false"
,
Annotate
.
set_defaults
(
'position_in_routes'
=>
'before'
,
'position_in_class'
=>
'before'
,
'position_in_test'
=>
'before'
,
'position_in_fixture'
=>
'before'
,
'position_in_factory'
=>
'before'
,
'position_in_serializer'
=>
'before'
,
'show_foreign_keys'
=>
'true'
,
'show_indexes'
=>
'true'
,
'simple_indexes'
=>
'false'
,
'model_dir'
=>
'app/models'
,
'include_version'
=>
'false'
,
'require'
=>
''
,
'exclude_tests'
=>
'false'
,
'exclude_fixtures'
=>
'false'
,
'exclude_factories'
=>
'false'
,
'exclude_serializers'
=>
'false'
,
'ignore_model_sub_dir'
=>
'false'
,
'skip_on_db_migrate'
=>
'false'
,
'format_bare'
=>
'true'
,
'format_rdoc'
=>
'false'
,
'format_markdown'
=>
'false'
,
'sort'
=>
'false'
,
'force'
=>
'false'
,
'trace'
=>
'false'
,
'wrapper_open'
=>
nil
,
'wrapper_close'
=>
nil
,
}
)
)
end
Annotate
.
load_tasks
...
...
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