> +1 for allowing generators to pick up on any reserved keywords and
> warn about them. Obviously we can't catch everything, but it would be
> helpful to flag up names we know aren't going to work.

The generators actually do this already, but they only check for
existing constants.  For example if you're generating a model called
Mime it basically does

if Object.const_defined?("Mime")
  fail
end

Clearly that's not enough to catch everything though as the examples
people have mentioned here are causing problems *without*  constants
defined.

If someone wants to take a stab at this, I'm keen to take a look at a patch.

-- 
Cheers

Koz

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to