about summary refs log tree commit diff
path: root/app/lib
diff options
context:
space:
mode:
authorMatt Jankowski <mjankowski@thoughtbot.com>2017-05-18 21:11:23 -0400
committerEugen Rochko <eugen@zeonfederated.com>2017-05-19 03:11:23 +0200
commit6e4c7d62118d5d1f2e966950edfdbc80cebd4d7c (patch)
tree886a8215d03ab975211a463bd33aee1331cc7bb9 /app/lib
parentd2542dcec0dafa8878efd2bd4fe53bd80256aa60 (diff)
Conditional validations no longer accept strings for if/unless (#3124)
Diffstat (limited to 'app/lib')
-rw-r--r--app/lib/application_extension.rb2
1 files changed, 1 insertions, 1 deletions
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