Permalink
Browse files

Make use of the inherited initializer.

  • Loading branch information...
1 parent 37b30d4 commit a53ef972066503e601e023748949b6668fce51e3 @thedarkone thedarkone committed with fxn Jul 28, 2011
Showing with 2 additions and 3 deletions.
  1. +2 −3 actionpack/lib/action_dispatch/routing/mapper.rb
@@ -936,12 +936,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 a53ef97

Please sign in to comment.