aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/routing/mapper.rb
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2010-03-09 21:20:13 -0600
committerJoshua Peek <josh@joshpeek.com>2010-03-09 21:20:13 -0600
commit1cc2a61ea655fea246f4c3e22a9e4a494e99d952 (patch)
treeb1743dd232046ab122471e1595960d65ac991cb2 /actionpack/lib/action_dispatch/routing/mapper.rb
parent4d2470f7daad8cebd0a69f5ea0509a41af0596b8 (diff)
downloadrails-1cc2a61ea655fea246f4c3e22a9e4a494e99d952.tar.gz
rails-1cc2a61ea655fea246f4c3e22a9e4a494e99d952.tar.bz2
rails-1cc2a61ea655fea246f4c3e22a9e4a494e99d952.zip
Allow default_url_options to be set on route set
Diffstat (limited to 'actionpack/lib/action_dispatch/routing/mapper.rb')
-rw-r--r--actionpack/lib/action_dispatch/routing/mapper.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/actionpack/lib/action_dispatch/routing/mapper.rb b/actionpack/lib/action_dispatch/routing/mapper.rb
index ae4470d033..0b7b09ee7a 100644
--- a/actionpack/lib/action_dispatch/routing/mapper.rb
+++ b/actionpack/lib/action_dispatch/routing/mapper.rb
@@ -180,6 +180,11 @@ module ActionDispatch
@set.add_route(*mapping)
self
end
+
+ def default_url_options=(options)
+ @set.default_url_options = options
+ end
+ alias_method :default_url_options, :default_url_options=
end
module HttpHelpers