]> cat aescling's git repositories - mastodon.git/commitdiff
Correct Account model for rubocop (#2587)
authorTomohiro Suwa <neoen.gsn@gmail.com>
Wed, 3 May 2017 17:13:04 +0000 (02:13 +0900)
committerEugen Rochko <eugen@zeonfederated.com>
Wed, 3 May 2017 17:13:04 +0000 (19:13 +0200)
* Correct Account model for rubocop

* Undo these changes

app/models/account.rb

index 88f25aa4b7b0c9a81bf6d7a07add3b3dfc06f441..d64591641c1a7adbe8a99daa6e64b1661ee74c4c 100644 (file)
@@ -182,7 +182,7 @@ class Account < ApplicationRecord
   end
 
   def subscribed?
-    !subscription_expires_at.blank?
+    subscription_expires_at.present?
   end
 
   def followers_domains