This project is archived and is in readonly mode.
Cleaning abstract_class? method
-
Santiago Pastorino
- State changed from new to wontfix
- Importance changed from to Low
This code
defined?(@abstract_class) && @abstract_class == trueMakes abstract_class? return true if and only if @abstract_class value is true.
Also docs says you have to assign true to this value
# Set this to true if this is an abstract class (see <tt>abstract_class?</tt>). attr_accessor :abstract_classSo you're changing the semantics here and allowing things like abstract_class = "hello" to set the model as an abstract_class
