This project is archived and is in readonly mode.

#3098 ✓invalid
Damien MATHIEU

Metal names conflict with models

Reported by Damien MATHIEU | August 26th, 2009 @ 02:45 PM

Hello,

By default, the metals are named only with their name.
Because of that, there's a possible conflict if we have a metal using the same name than a model.
If we have a metal "Example" and a model with the same name, we won't be able to call the model Example inside our metal because of this conflict name.

My suggestion would be to append "_metal" to the filename and "Metal" to the classname.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

Attachments

Tags

Pages