Sha256: fe8558ba0b172719b05a2ac9152a52d081d414ed3b2d36fa45137b35c38f165f

Contents?: true

Size: 1.46 KB

Versions: 5

Compression:

Stored size: 1.46 KB

Contents

# NOTE: only doing this in development as some production environments (Heroku)
# NOTE: are sensitive to local FS writes, and besides -- it's just not proper
# NOTE: to have a dev-mode tool do its thing in production.
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",
      '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",
    })
  end

  Annotate.load_tasks
end

Version data entries

5 entries across 5 versions & 3 rubygems

Version Path
pineapples-0.3.345 lib/pineapples/templates/lib/tasks/auto_annotate_models.rake
pineapples-0.3.34 lib/pineapples/templates/lib/tasks/auto_annotate_models.rake
sc_core-0.0.7 test/dummy/vendor/bundle/ruby/2.2.0/gems/annotate-2.6.10/lib/generators/annotate/templates/auto_annotate_models.rake
annotate-2.6.10 lib/generators/annotate/templates/auto_annotate_models.rake
annotate-2.6.9 lib/generators/annotate/templates/auto_annotate_models.rake