From bd5ace88b2cc8a56c33a8b44ca98de8cc15e0790 Mon Sep 17 00:00:00 2001 From: Nicholas Seckar Date: Tue, 22 Nov 2005 22:24:25 +0000 Subject: Initialize @optional in routing code to avoid warnings git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3163 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/lib/action_controller/routing.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'actionpack/lib') diff --git a/actionpack/lib/action_controller/routing.rb b/actionpack/lib/action_controller/routing.rb index 285d692f4e..f6489cdb14 100644 --- a/actionpack/lib/action_controller/routing.rb +++ b/actionpack/lib/action_controller/routing.rb @@ -100,6 +100,7 @@ module ActionController def initialize(key, options = {}) @key = key.to_sym + @optional = false default, @condition = options[:default], options[:condition] self.default = default if options.key?(:default) end -- cgit v1.2.3