Sha256: 8c07b270e59baf85f9a9b35ae0e89c438c4e5aefd956e0253fb2e2361c79a40b

Contents?: true

Size: 1.28 KB

Versions: 13

Compression:

Stored size: 1.28 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",
      'show_indexes'         => "true",
      'simple_indexes'       => "false",
      'model_dir'            => "app/models",
      'include_version'      => "false",
      'require'              => "",
      'exclude_tests'        => "false",
      'exclude_fixtures'     => "false",
      'exclude_factories'    => "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

13 entries across 13 versions & 3 rubygems

Version Path
handshake_service-0.1.5 lib/tasks/auto_annotate_models.rake
handshake_service-0.1.4 lib/tasks/auto_annotate_models.rake
handshake_service-0.1.3 lib/tasks/auto_annotate_models.rake
handshake_service-0.1.2 lib/tasks/auto_annotate_models.rake
handshake_service-0.1.1 lib/tasks/auto_annotate_models.rake
annotate-2.6.3 lib/generators/annotate/templates/auto_annotate_models.rake
annotate-2.6.2 lib/generators/annotate/templates/auto_annotate_models.rake
annotate-2.6.1 lib/generators/annotate/templates/auto_annotate_models.rake
annotate-2.6.0 lib/generators/annotate/templates/auto_annotate_models.rake
got_fixed-0.0.3 lib/tasks/auto_annotate_models.rake
got_fixed-0.0.2 lib/tasks/auto_annotate_models.rake
got_fixed-0.0.1 lib/tasks/auto_annotate_models.rake
annotate-2.6.0.beta2 lib/generators/annotate/templates/auto_annotate_models.rake