From b121b091e897ab55f01c5818b0e7fa3cd5e1cd7d Mon Sep 17 00:00:00 2001 From: Steven Anderson Date: Fri, 24 Feb 2012 10:50:48 +0000 Subject: [PATCH] Added guide to updating engines built in previous versions of Rails --- railties/guides/source/3_2_release_notes.textile | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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 mass_assignment_sanitizer config also needs to be added in conf config.active_record.mass_assignment_sanitizer = :strict +h4. What to update in your engines + +Replace the code beneath the comment in script/rails with the following content: + + +ENGINE_ROOT = File.expand_path('../..', __FILE__) +ENGINE_PATH = File.expand_path('../../lib/your_engine_name/engine', __FILE__) + +require 'rails/all' +require 'rails/engine/commands' + + h3. Creating a Rails 3.2 application