Skip to content

slugged forced by scoped #1043

Description

@mkamensky

It seems that the option scoped forces the use of slugged. As a result, it uses the wrong query_method. For example

class Exam
  belongs_to :course

  extend FriendlyId

  friendly_id :title, use: :scoped, scope: :course
end

Here, title is a unique column, but if ex is an instance of Exam, ee.friendly_id will try to call slug.

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