Skip to content

Make polymorphic_url calls go through application helpers again. #2252

Merged
merged 1 commit into from Jul 25, 2011

2 participants

@thedarkone

This brings back the ability to overwrite/extend polymorphic url helpers via application helpers that was present in Rails 2.3 and Rails 3.0.

Thus allowing to do something like this:

module ApplicationHelper
  def posts_path(*args)
    do_something(*args)
    super
  end
end
@thedarkone thedarkone Make polymorphic_url calls go through application helpers again.
This brings back the ability to overwrite/extend url generating methods in application heleprs.
036f775
@josevalim josevalim merged commit dffd920 into rails:master Jul 25, 2011
@josevalim
Ruby on Rails member

Is this broken on 3-1-stable as well? If so, could you please backport? Thanks!

@thedarkone

This applies cleanly to 3-1-stable as well. Do I need to open another pull request?

@josevalim
Ruby on Rails member

Yes please ( I am in a computer without git :( ).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.