mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06: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
@ -89,7 +89,7 @@ class Invite < ActiveRecord::Base
|
|||||||
filter: "%#{email_or_username.downcase}%"
|
filter: "%#{email_or_username.downcase}%"
|
||||||
)
|
)
|
||||||
else
|
else
|
||||||
scoped
|
rails4? ? all : scoped
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user