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:
parent
62b1f1a62d
commit
b121b091e8
1 changed files with 12 additions and 0 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue