You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
JasonBarnabe
changed the title
Rails/StrongParametersExpect breaks code when original is across multiple lines
Rails/StrongParametersExpect correction is a syntax error when original is across multiple lines
Jan 18, 2025
…metersExpect`
Fixesrubocop#1417.
This PR fixes an incorrect autocorrect for `Rails/StrongParametersExpect`
when using a leading dot multiline call to `params.require(:user).permit(:name, :age)`.
koic
added a commit
to koic/rubocop-rails
that referenced
this issue
Jan 18, 2025
Before running the cop:
Cop output:
After the cop:
RuboCop version
The text was updated successfully, but these errors were encountered: