Skip to content

Unable to annotate routes at the bottom while it works correctly for Models #761

Closed
@sandip-mane

Description

@sandip-mane

Unable to annotate_routes at the bottom of the file. This is working for models as expected.

Commands

$ rails annotate_routes

Configuration

if Rails.env.development?
  require 'annotate'
  task :set_annotation_options do
    # You can override any of these by setting an environment variable of the
    # same name.
    Annotate.set_defaults(
      'active_admin'                => 'false',
      'additional_file_patterns'    => [],
      'routes'                      => 'true',
      'models'                      => 'true',
      'position_in_routes'          => 'after',
      'position_in_class'           => 'after',
      'position_in_test'            => 'after',
      'position_in_fixture'         => 'after',
      'position_in_factory'         => 'after',

Versions

  • 3.1.0
  • 6.0.2.1
  • 2.6.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions