Rewrite except_hidden user scope for Rails 4 compatibility
Fixed in Releases:
Found in Releases:
As it is written right now it needs a `.references(:users)` at the end in order to work. We can rewrite the query to be compatible with Rails 4 and Rails 3 at the same time.