Enable Rails/Validation Rubocop cop

Cop checks for the use of old-style attribute validation. Supports autocorrection which was run
to fix the files concerned

Closes #1414
This commit is contained in:
Emanuel Hayford 2017-03-28 21:47:17 +02:00
parent e2a7e396a2
commit e5587d42a2
11 changed files with 33 additions and 46 deletions

View file

@ -6,5 +6,5 @@ class Sponsor < ActiveRecord::Base
mount_uploader :picture, PictureUploader, mount_on: :logo_file_name
validates_presence_of :name, :website_url, :sponsorship_level
validates :name, :website_url, :sponsorship_level, presence: true
end