default scope fix for Rails 4.1