Skip to content

Commit

Permalink
Install named routes into ActionView::Base instead of proxying them t…
Browse files Browse the repository at this point in the history
…o the view via helper_method. Closes #5932.

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5283 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information
seckar committed Oct 11, 2006
1 parent 1117387 commit 214d236
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
3 changes: 3 additions & 0 deletions actionpack/CHANGELOG
@@ -1,5 +1,7 @@
*SVN* *SVN*


* Install named routes into ActionView::Base instead of proxying them to the view via helper_method. Closes #5932. [Nicholas Seckar]

* Update to latest Prototype and script.aculo.us trunk versions [Thomas Fuchs] * Update to latest Prototype and script.aculo.us trunk versions [Thomas Fuchs]


* Fix relative URL root matching problems. [Mark Imbriaco] * Fix relative URL root matching problems. [Mark Imbriaco]
Expand All @@ -8,6 +10,7 @@


* render_text may optionally append to the response body. render_javascript appends by default. This allows you to chain multiple render :update calls by setting @performed_render = false between them (awaiting a better public API). [Jeremy Kemper] * render_text may optionally append to the response body. render_javascript appends by default. This allows you to chain multiple render :update calls by setting @performed_render = false between them (awaiting a better public API). [Jeremy Kemper]


>>>>>>> .r5282
* Rename test assertion to prevent shadowing. Closes #6306. [psross] * Rename test assertion to prevent shadowing. Closes #6306. [psross]


* Fixed that NumberHelper#number_to_delimiter should respect precision of higher than two digits #6231 [phallstrom] * Fixed that NumberHelper#number_to_delimiter should respect precision of higher than two digits #6231 [phallstrom]
Expand Down
7 changes: 2 additions & 5 deletions actionpack/lib/action_controller/routing.rb
Expand Up @@ -1025,11 +1025,8 @@ def length
routes.length routes.length
end end


def install(dest = ActionController::Base) def install(destinations = [ActionController::Base, ActionView::Base])
dest.send :include, @module Array(destinations).each { |dest| dest.send :include, @module }
if dest.respond_to? :helper_method
helpers.each { |name| dest.send :helper_method, name }
end
end end


private private
Expand Down

0 comments on commit 214d236

Please sign in to comment.