- Timestamp:
- 01/26/08 08:41:19 (9 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/actionpack/lib/action_controller/routing/route_set.rb
r8674 r8738 20 20 # Creates a named route called "root" for matching the root level request. 21 21 def root(options = {}) 22 if options.is_a?(Symbol) 23 if source_route = @set.named_routes.routes[options] 24 options = source_route.defaults.merge({ :conditions => source_route.conditions }) 25 end 26 end 22 27 named_route("root", '', options) 23 28 end