Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Fix rubocop#12] Allow passing boolean literals to touch
The `Rails/SkipsModelValidations` cop currently incorrectly registers an offense for the `touch` method from Shoulda Matchers' associations DSL: it { is_expected.to belong_to(:user).touch(true) } Active Record's `touch` method accepts attribute names, so we can treat `touch` calls that pass boolean literal arguments as false positives.
- Loading branch information