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
Metadata
Metadata
Assignees
Labels
No labels
Activity