diff options
author | Vijay Dev <vijaydev.cse@gmail.com> | 2012-02-28 10:58:50 -0800 |
---|---|---|
committer | Vijay Dev <vijaydev.cse@gmail.com> | 2012-02-28 10:58:50 -0800 |
commit | d44e2d7d722637a14abf9c3972ddc48f05241b59 (patch) | |
tree | 2691e8086f77ea5fd91a0a309e4c18fd0d1c82e0 /railties | |
parent | f597122b076568356c070ed9bcd83aec29a963eb (diff) | |
parent | b121b091e897ab55f01c5818b0e7fa3cd5e1cd7d (diff) | |
download | rails-d44e2d7d722637a14abf9c3972ddc48f05241b59.tar.gz rails-d44e2d7d722637a14abf9c3972ddc48f05241b59.tar.bz2 rails-d44e2d7d722637a14abf9c3972ddc48f05241b59.zip |
Merge pull request #85 from whilefalse/rails_32_engine_upgrade
Added guide to updating engines built in previous versions of Rails
Diffstat (limited to 'railties')
-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> |