mirror of
https://github.com/discourse/discourse.git
synced 2025-01-31 17:56:16 +08:00
✂️ scoped for Rails 4 compat
This commit is contained in:
parent
14328a24ef
commit
3c80ee0b8a
|
@ -89,7 +89,7 @@ class Invite < ActiveRecord::Base
|
|||
filter: "%#{email_or_username.downcase}%"
|
||||
)
|
||||
else
|
||||
scoped
|
||||
rails4? ? all : scoped
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue
Block a user