Skip to content

Commit

Permalink
Make ActiveRecordAliases scope false
Browse files Browse the repository at this point in the history
We faced an issue where our custom `update_attributes` method call was changed to `update` but the method name remained same in the method definition.

### Original code

```ruby
def update_attributes
end

update_attributes
```

### After running rubocop --safe-auto-correct:

```ruby
def update_attributes
end

update
```

So the cop is not safe for auto correct.
  • Loading branch information
prathamesh-sonpatki committed Jul 30, 2019
1 parent aedb97c commit 2d355b0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions config/default.yml
Expand Up @@ -31,6 +31,7 @@ Rails/ActiveRecordAliases:
Use `update!` instead of `update_attributes!`.
Enabled: true
VersionAdded: '0.53'
Safe: false

Rails/ActiveRecordOverride:
Description: >-
Expand Down

0 comments on commit 2d355b0

Please sign in to comment.