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}%"
|
||||
)
|
||||
else
|
||||
scoped
|
||||
rails4? ? all : scoped
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue