Rails 4.0.3 app that shows strange behavior when using scope in the model