aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorthedarkone <thedarkone2@gmail.com>2011-07-28 20:02:21 +0200
committerXavier Noria <fxn@hashref.com>2011-08-13 16:22:23 -0700
commita53ef972066503e601e023748949b6668fce51e3 (patch)
treeeefbf03e93f5ad675a7535648ae44712406e3cf8
parent37b30d4b4eb983579f083627b3faa065be527a61 (diff)
downloadrails-a53ef972066503e601e023748949b6668fce51e3.tar.gz
rails-a53ef972066503e601e023748949b6668fce51e3.tar.bz2
rails-a53ef972066503e601e023748949b6668fce51e3.zip
Make use of the inherited initializer.
-rw-r--r--actionpack/lib/action_dispatch/routing/mapper.rb5
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 a53a2d98d3..bd04f48c00 100644
--- a/actionpack/lib/action_dispatch/routing/mapper.rb
+++ b/actionpack/lib/action_dispatch/routing/mapper.rb
@@ -936,12 +936,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