Skip to content

Documentation not working when same name of controllers reside in scopes #455

Closed
@vkeziah

Description

@vkeziah

I have 2 controllers having the same name but in different scopes and have the different routes but documentation not considering both , its considering only one , please look at the following example

  scope module: :courier do 
    resources :devices, path: "/couriers/devices"
  end

  scope module: :user do  
    resources :devices, path: "/users/devices"
  end

courier devices controller

  api :POST, '/couriers/devices', 'Create device for courier'

user devices controller

  api :POST, '/users/devices', 'Create device for user'

on documentation I see only couriers part like the following

  POST /api/couriers/devices"   Create device for courier

I dont see my users url documentation, Whats wrong in that ? is this gem not working for scopes?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions