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