Updated scope syntax to remove deprecation warning in Rails 4