From 3c80ee0b8a127b2e5ce71b72d5a4d21b0257a1bf Mon Sep 17 00:00:00 2001 From: Godfrey Chan Date: Thu, 12 Dec 2013 00:37:04 -0800 Subject: [PATCH] :scissors: scoped for Rails 4 compat --- app/models/invite.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/invite.rb b/app/models/invite.rb index 3cf7361444c..d491a9ab06a 100644 --- a/app/models/invite.rb +++ b/app/models/invite.rb @@ -89,7 +89,7 @@ class Invite < ActiveRecord::Base filter: "%#{email_or_username.downcase}%" ) else - scoped + rails4? ? all : scoped end end end