aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/subscriber_test.rb
diff options
context:
space:
mode:
authorAndrew White <andrew.white@unboxed.co>2017-02-20 20:22:42 +0000
committerAndrew White <andrew.white@unboxed.co>2017-02-21 15:30:47 +0000
commit3bf47b018be912fc7946342315e67b2ac6c33eaf (patch)
tree4973296ac024fdf8ead9d2f80230a7c9c0785810 /activesupport/test/subscriber_test.rb
parentd67e2520289745913e7bab9a852c86b99245f738 (diff)
downloadrails-3bf47b018be912fc7946342315e67b2ac6c33eaf.tar.gz
rails-3bf47b018be912fc7946342315e67b2ac6c33eaf.tar.bz2
rails-3bf47b018be912fc7946342315e67b2ac6c33eaf.zip
Add custom polymorphic mapping
Allow the use of `direct` to specify custom mappings for polymorphic_url, e.g: resource :basket direct(class: "Basket") { [:basket] } This will then generate the following: >> link_to "Basket", @basket => <a href="/basket">Basket</a> More importantly it will generate the correct url when used with `form_for`. Fixes #1769.
Diffstat (limited to 'activesupport/test/subscriber_test.rb')
0 files changed, 0 insertions, 0 deletions