1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionview/test
Bernerd Schaefer ee63532d40 url_for does not modify polymorphic options
The `url_for` methods in `actionpack` and `actionview`
now make a copy of the provided options
before generating polymorphic paths or URLs.

The bug in the previous behavior
is most noticeable in a case like:

    url_options = [:new, :post, param: 'value']

    if current_page?(url_options)
      css_class = "active"
    end

    link_to "New Post", url_options, class: css_class
2015-09-04 13:42:32 -07:00
..
actionpack Stop using deprecated render :text in test 2015-07-17 22:27:33 -04:00
activerecord Fix calling cache helper with a relation 2015-08-28 17:26:09 +10:00
fixtures Fix calling cache helper with a relation 2015-08-28 17:26:09 +10:00
lib/controller Add tests to make sure label and placeholder respect to_model 2015-02-05 16:19:29 -02:00
template url_for does not modify polymorphic options 2015-09-04 13:42:32 -07:00
tmp
abstract_unit.rb Removed Mocha from ActionView part 1 2015-08-24 08:59:19 +05:30
active_record_unit.rb Closes rails/rails#18864: Renaming transactional fixtures to transactional tests 2015-03-16 11:35:44 -07:00