Anyone know why __END__ and DATA don''t work in Rails?

Gavin
2009-09-11T16:12:13Z

When writing Ruby you have the option to end the file early with
__END__. Anything after the __END__ is assigned to a constant called
DATA which is available within the file.

I recently tried using this in Rails and it didn''t work. Instead I get
an uninitialized constant exception. Anyone know why?

Has it been disabled in Rails?

thanks

Gavin