Skip to content
Browse files

Merge pull request #85 from whilefalse/rails_32_engine_upgrade

Added guide to updating engines built in previous versions of Rails
  • Loading branch information...
2 parents f597122 + b121b09 commit d44e2d7d722637a14abf9c3972ddc48f05241b59 @vijaydev vijaydev committed Feb 28, 2012
Showing with 12 additions and 0 deletions.
  1. +12 −0 railties/guides/source/3_2_release_notes.textile
View
12 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>

0 comments on commit d44e2d7

Please sign in to comment.
Something went wrong with that request. Please try again.