Updates scope syntax to avoid deprecation warnings in Rails 4.