Skip to content
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

Add autocorrect for Rails/Validation cop #2927

Closed
sferik opened this issue Mar 8, 2016 · 2 comments
Closed

Add autocorrect for Rails/Validation cop #2927

sferik opened this issue Mar 8, 2016 · 2 comments

Comments

@sferik
Copy link
Contributor

sferik commented Mar 8, 2016

Expected behavior

-  validates_presence_of :name
-  validates_uniqueness_of :name
+  validates :name, presence: true
+  validates :name, uniqueness: true
@bbatsov
Copy link
Collaborator

bbatsov commented Mar 19, 2016

Yeah, we can certainly do this.

@tejasbubane
Copy link
Contributor

This can be closed (via #3073)

@bbatsov bbatsov closed this as completed Jun 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants