aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorNeeraj Singh <neerajdotname@gmail.com>2010-08-18 00:08:00 -0400
committerNeeraj Singh <neerajdotname@gmail.com>2010-08-18 00:08:00 -0400
commit7d0b69d916b46218524c7fe8fdb6a1d0b20caefe (patch)
treec2838d0608611d63a8e518b37c4ea378511d8dd7 /railties
parent2a4eb69ff49464c4d60cf4863ddbb470316c0302 (diff)
downloadrails-7d0b69d916b46218524c7fe8fdb6a1d0b20caefe.tar.gz
rails-7d0b69d916b46218524c7fe8fdb6a1d0b20caefe.tar.bz2
rails-7d0b69d916b46218524c7fe8fdb6a1d0b20caefe.zip
correcting the documentation which wrongly states that rails/init.rb file of a gem is loaded
Diffstat (limited to 'railties')
-rw-r--r--railties/guides/source/plugins.textile2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/guides/source/plugins.textile b/railties/guides/source/plugins.textile
index f89043f216..2300786791 100644
--- a/railties/guides/source/plugins.textile
+++ b/railties/guides/source/plugins.textile
@@ -1341,7 +1341,7 @@ h3. Plugins as Gems
Turning your rails plugin into a gem is a simple and straightforward task. This section will cover how to turn your plugin into a gem. It will not cover how to distribute that gem.
-The initialization file has to be called +rails/init.rb+, the root +init.rb+ file, if any, is ignored by Rails. Also, the name of the plugin now is relevant since +config.gem+ tries to load it. Either name the main file after your gem, or document that users should use the +:lib+ option.
+Rails 3 ignores both <tt>init.rb</tt> and <tt>rails/init.rb</tt> file of a gem. Also, the name of the plugin now is relevant since +config.gem+ tries to load it. Either name the main file after your gem, or document that users should use the +:lib+ option.
It's common practice to put any developer-centric rake tasks (such as tests, rdoc and gem package tasks) in +Rakefile+. A rake task that packages the gem might look like this: