Skip to content

Rails/ReflectionClassName gives false positive #106

Closed
@jcoyne

Description

Expected behavior

It should not mark an error when a string is given

Actual behavior

Describe here what actually happened.

Steps to reproduce the problem

app/models/spotlight/page.rb:13:33: C: Rails/ReflectionClassName: Use a string has value for a class_name.
    belongs_to :last_edited_by, class_name: Spotlight::Engine.config.user_class, optional: true

However Spotlight::Engine.config.user_class is returning a string.

RuboCop version

$ bundle exec rubocop -v
0.64.0

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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