mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-24 08:09:13 -05:00
Merge pull request #1731 from chancancode/no_more_scoped_in_rails_4_1
✂️ scoped for Rails 4 compat
This commit is contained in:
commit
50c4e3707b
1 changed files with 1 additions and 1 deletions
|
@ -89,7 +89,7 @@ class Invite < ActiveRecord::Base
|
|||
filter: "%#{email_or_username.downcase}%"
|
||||
)
|
||||
else
|
||||
scoped
|
||||
rails4? ? all : scoped
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue