diff options
author | Steven Anderson <steve@whilefalse.net> | 2012-02-24 10:50:48 +0000 |
---|---|---|
committer | Steven Anderson <steve@whilefalse.net> | 2012-02-24 10:54:59 +0000 |
commit | b121b091e897ab55f01c5818b0e7fa3cd5e1cd7d (patch) | |
tree | d50276c473226efaaafc4eea6fb2d53b5c00cdbd | |
parent | 62b1f1a62d3f534a7841794d9fd434964143f76a (diff) | |
download | rails-b121b091e897ab55f01c5818b0e7fa3cd5e1cd7d.tar.gz rails-b121b091e897ab55f01c5818b0e7fa3cd5e1cd7d.tar.bz2 rails-b121b091e897ab55f01c5818b0e7fa3cd5e1cd7d.zip |
Added guide to updating engines built in previous versions of Rails
-rw-r--r-- | railties/guides/source/3_2_release_notes.textile | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/railties/guides/source/3_2_release_notes.textile b/railties/guides/source/3_2_release_notes.textile index d669a7fdfa..0f8fea2bf6 100644 --- a/railties/guides/source/3_2_release_notes.textile +++ b/railties/guides/source/3_2_release_notes.textile @@ -49,6 +49,18 @@ The <tt>mass_assignment_sanitizer</tt> config also needs to be added in <tt>conf config.active_record.mass_assignment_sanitizer = :strict </ruby> +h4. What to update in your engines + +Replace the code beneath the comment in <tt>script/rails</tt> with the following content: + +<ruby> +ENGINE_ROOT = File.expand_path('../..', __FILE__) +ENGINE_PATH = File.expand_path('../../lib/your_engine_name/engine', __FILE__) + +require 'rails/all' +require 'rails/engine/commands' +</ruby> + h3. Creating a Rails 3.2 application <shell> |