diff options
author | thedarkone <thedarkone2@gmail.com> | 2011-07-28 20:02:21 +0200 |
---|---|---|
committer | thedarkone <thedarkone2@gmail.com> | 2011-07-28 20:02:21 +0200 |
commit | a5f57a7ef2af05ac1f7b919040e10c1b21de8e56 (patch) | |
tree | 7d4a512bf43c9b4c6dc40048a810f8988b3753b1 /actionpack | |
parent | 4d4d2179f68ecda5736feb6cccd897b73653bce9 (diff) | |
download | rails-a5f57a7ef2af05ac1f7b919040e10c1b21de8e56.tar.gz rails-a5f57a7ef2af05ac1f7b919040e10c1b21de8e56.tar.bz2 rails-a5f57a7ef2af05ac1f7b919040e10c1b21de8e56.zip |
Make use of the inherited initializer.
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/lib/action_dispatch/routing/mapper.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/actionpack/lib/action_dispatch/routing/mapper.rb b/actionpack/lib/action_dispatch/routing/mapper.rb index 36d878aee9..cbf97f1b6a 100644 --- a/actionpack/lib/action_dispatch/routing/mapper.rb +++ b/actionpack/lib/action_dispatch/routing/mapper.rb @@ -943,12 +943,11 @@ module ActionDispatch DEFAULT_ACTIONS = [:show, :create, :update, :destroy, :new, :edit] def initialize(entities, options) + super + @as = nil - @name = entities.to_s - @path = (options[:path] || @name).to_s @controller = (options[:controller] || plural).to_s @as = options[:as] - @options = options end def plural |