This project is archived and is in readonly mode.
ActiveRecord - named_scope using ':columns' as the name is buggered
-
Ryan Bigg
columns is a reserved class method on ActiveRecord. Perhaps named_scope should error if you try to define a method that is already defined?
-
David Trasbo
- Assigned user set to Ryan Bigg
In edge Rails you will be warned if defining a scope results in a method being overridden. This ticket can be closed.
-
Ryan Bigg
- State changed from new to resolved
if !scopes[name] && respond_to?(name, true) logger.warn "Creating scope :#{name}. " \ "Overwriting existing method #{self.name}.#{name}." end