rails/rails — pull request #10129 by Agis- (2013-04-07 17:38:44+00:00)
Title: Implement ActiveRecord::Base#default_scopes? to behave correctly

ie. return `true` if there are default scopes defined and `false` otherwise

Previously, `#default_scopes?` would always return `true`, even if there were no default scopes defined in a model (due to it being defined dynamically by `class_attribute`).

cc @carlosantoniodasilva