1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Added guide to updating engines built in previous versions of Rails

This commit is contained in:
Steven Anderson 2012-02-24 10:50:48 +00:00
parent 62b1f1a62d
commit b121b091e8

View file

@ -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 config.active_record.mass_assignment_sanitizer = :strict
</ruby> </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 h3. Creating a Rails 3.2 application
<shell> <shell>