diff options
author | Emilio Tagua <miloops@gmail.com> | 2010-09-24 13:04:51 -0300 |
---|---|---|
committer | Emilio Tagua <miloops@gmail.com> | 2010-09-27 11:19:20 -0300 |
commit | bb2f53b4090768e4750af66c6fed15d6596bb11c (patch) | |
tree | 5e71e69ebbbdb0b8f20a763a6dc498459c30b22e /actionpack | |
parent | 5ced275ac1fc8d52654521bf61742cb7f2f0d796 (diff) | |
download | rails-bb2f53b4090768e4750af66c6fed15d6596bb11c.tar.gz rails-bb2f53b4090768e4750af66c6fed15d6596bb11c.tar.bz2 rails-bb2f53b4090768e4750af66c6fed15d6596bb11c.zip |
Initialize @as before plural method is called.
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/lib/action_dispatch/routing/mapper.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/actionpack/lib/action_dispatch/routing/mapper.rb b/actionpack/lib/action_dispatch/routing/mapper.rb index 8ddf67c0cf..f6d625e7c3 100644 --- a/actionpack/lib/action_dispatch/routing/mapper.rb +++ b/actionpack/lib/action_dispatch/routing/mapper.rb @@ -676,6 +676,7 @@ module ActionDispatch DEFAULT_ACTIONS = [:show, :create, :update, :destroy, :new, :edit] def initialize(entities, options) + @as = nil @name = entities.to_s @path = (options.delete(:path) || @name).to_s @controller = (options.delete(:controller) || plural).to_s |