New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow Rails/ReflectionClassName to use symbol argument #6791
Allow Rails/ReflectionClassName to use symbol argument #6791
Conversation
That makes sense. Can you write the CHANGELOG entry? |
@koic I see! |
934261e
to
84b1012
Compare
84b1012
to
7443b0e
Compare
Unfortunately I had overlooked the discussion below 💦 I have an opportunity to meet Rails committer soon. I'd like to make a final judgment by listening to opinion as Rails. Please wait for a little while longer. |
Looks like a number of different test cases have been squashed into one (even before you made this change.) Could you please separate the test cases so we test one thing per test? 🙂 |
Correct 💦 The test case of String object and the test case of Symbol object should have been independent. |
I disagree with allowing a symbol here. It is immediately converted to a string with |
I think that using String for On the other hand, If you propose to Rails that it does not accept Symbol with |
7126d0d
to
af75e6e
Compare
symbol is also used as string
af75e6e
to
9ab9534
Compare
Thanks! |
Thank you too! |
Rails/ReflectionClassName ( introduced from #6704 ) offences that code, but symbol is also uses as string so I think this code has no offences by the cop.
Before submitting the PR make sure the following are checked:
[Fix #issue-number]
(if the related issue exists).master
(if not - rebase it).and description in grammatically correct, complete sentences.
bundle exec rake default
. It executes all tests and RuboCop for itself, and generates the documentation.