]> git.openstreetmap.org Git - rails.git/blob - lib/tasks/auto_annotate_models.rake
Add last edited date to user profile
[rails.git] / lib / tasks / auto_annotate_models.rake
1 # NOTE: only doing this in development as some production environments (Heroku)
2 # NOTE: are sensitive to local FS writes, and besides -- it's just not proper
3 # NOTE: to have a dev-mode tool do its thing in production.
4 if Rails.env.local?
5   task :set_annotation_options => :environment do
6     # You can override any of these by setting an environment variable of the
7     # same name.
8     Annotate.set_defaults(
9       "routes" => "false",
10       "position_in_routes" => "before",
11       "position_in_class" => "before",
12       "position_in_test" => "before",
13       "position_in_fixture" => "before",
14       "position_in_factory" => "before",
15       "position_in_serializer" => "before",
16       "show_foreign_keys" => "true",
17       "show_indexes" => "true",
18       "simple_indexes" => "false",
19       "model_dir" => "app/models",
20       "root_dir" => "",
21       "include_version" => "false",
22       "require" => "",
23       "exclude_tests" => "true",
24       "exclude_fixtures" => "true",
25       "exclude_factories" => "true",
26       "exclude_serializers" => "true",
27       "exclude_scaffolds" => "true",
28       "exclude_controllers" => "true",
29       "exclude_helpers" => "true",
30       "ignore_model_sub_dir" => "false",
31       "ignore_columns" => nil,
32       "ignore_routes" => nil,
33       "ignore_unknown_models" => "false",
34       "hide_limit_column_types" => "integer,boolean",
35       "skip_on_db_migrate" => "false",
36       "format_bare" => "true",
37       "format_rdoc" => "false",
38       "format_markdown" => "false",
39       "sort" => "false",
40       "force" => "false",
41       "trace" => "false",
42       "wrapper_open" => nil,
43       "wrapper_close" => nil
44     )
45   end
46
47   Annotate.load_tasks
48 end