aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides/source/3_0_release_notes.textile
diff options
context:
space:
mode:
authorAnil Wadghule <anildigital@gmail.com>2010-04-12 22:20:55 +0530
committerAnil Wadghule <anildigital@gmail.com>2010-04-12 22:53:49 +0530
commit84e46437fa50782dd38b96b8df00ca8b017c892e (patch)
tree9e9743de0e1cd9220a0f9a850865787f41cba875 /railties/guides/source/3_0_release_notes.textile
parent41bcf06d3289e2292fcc3819c8f104252af36adc (diff)
downloadrails-84e46437fa50782dd38b96b8df00ca8b017c892e.tar.gz
rails-84e46437fa50782dd38b96b8df00ca8b017c892e.tar.bz2
rails-84e46437fa50782dd38b96b8df00ca8b017c892e.zip
Replace 'RAILS_ROOT' to 'Rails.root' and 'RAILS_ENV' to 'Rails.env' in significant places.
Diffstat (limited to 'railties/guides/source/3_0_release_notes.textile')
-rw-r--r--railties/guides/source/3_0_release_notes.textile2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/guides/source/3_0_release_notes.textile b/railties/guides/source/3_0_release_notes.textile
index 024cb48288..da69ada7b4 100644
--- a/railties/guides/source/3_0_release_notes.textile
+++ b/railties/guides/source/3_0_release_notes.textile
@@ -183,7 +183,7 @@ Railties generators got a huge amount of attention in Rails 3.0, basically:
* Rails templates API and generators API were merged (they are the same as the former).
* Generators are no longer loaded from special paths anymore, they are just found in the Ruby load path, so calling <tt>rails generate foo</tt> will look for <tt>generators/foo_generator</tt>.
* New generators provide hooks, so any template engine, ORM, test framework can easily hook in.
-* New generators allow you to override the templates by placing a copy at <tt>RAILS_ROOT/lib/templates</tt>.
+* New generators allow you to override the templates by placing a copy at <tt>Rails.root/lib/templates</tt>.
* <tt>Rails::Generators::TestCase</tt> is also supplied so you can create your own generators and test them.
Also, the views generated by Railties generators had some overhaul: