From 641ea6925790771acb6e91b73f9efa6ded834761 Mon Sep 17 00:00:00 2001 From: Luiz Felipe Date: Mon, 17 Sep 2012 11:13:45 -0300 Subject: Removing to_shorthand from default_controller_and_action. Fixes #6497 When using shortcut routes inside an engine the "to_shorthand" variable is set to true, causing the module scope of the route to not be applied. --- actionpack/CHANGELOG.md | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'actionpack/CHANGELOG.md') diff --git a/actionpack/CHANGELOG.md b/actionpack/CHANGELOG.md index 39105c5ca3..7212e3a289 100644 --- a/actionpack/CHANGELOG.md +++ b/actionpack/CHANGELOG.md @@ -4,9 +4,19 @@ *Yves Senn* -* Allow pass couple extensions to ActionView::Template.register_template_handler call. *Tima Maslyuchenko* +* Allow pass couple extensions to `ActionView::Template.register_template_handler` call. *Tima Maslyuchenko* -* Sprockets integration has been extracted from Action Pack and the `sprockets-rails` +* Fixed a bug with shorthand routes scoped with the `:module` option not + adding the module to the controller as described in issue #6497. + This should now work properly: + + scope :module => "engine" do + get "api/version" # routes to engine/api#version + end + + *Luiz Felipe Garcia Pereira* + +* Sprockets integration has been extracted from Action Pack and the `sprockets-rails` gem should be added to Gemfile (under the assets group) in order to use Rails asset pipeline in future versions of Rails. -- cgit v1.2.3