From 6e4c7d62118d5d1f2e966950edfdbc80cebd4d7c Mon Sep 17 00:00:00 2001 From: Matt Jankowski Date: Thu, 18 May 2017 21:11:23 -0400 Subject: Conditional validations no longer accept strings for if/unless (#3124) --- app/lib/application_extension.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/lib') diff --git a/app/lib/application_extension.rb b/app/lib/application_extension.rb index 93c0f42f0..1d80b8c6d 100644 --- a/app/lib/application_extension.rb +++ b/app/lib/application_extension.rb @@ -4,6 +4,6 @@ module ApplicationExtension extend ActiveSupport::Concern included do - validates :website, url: true, unless: 'website.blank?' + validates :website, url: true, if: :website? end end -- cgit