Permalink
Browse files

Make use of the inherited initializer.

  • Loading branch information...
1 parent 4d4d217 commit a5f57a7ef2af05ac1f7b919040e10c1b21de8e56 @thedarkone thedarkone committed Jul 28, 2011
Showing with 2 additions and 3 deletions.
  1. +2 −3 actionpack/lib/action_dispatch/routing/mapper.rb
View
5 actionpack/lib/action_dispatch/routing/mapper.rb
@@ -943,12 +943,11 @@ class SingletonResource < Resource #:nodoc:
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

0 comments on commit a5f57a7

Please sign in to comment.