Permalink
Browse files

Make use of the inherited initializer.

  • Loading branch information...
1 parent 0753d0b commit 34c50895b40816adb6eb266cb34f8780380f8c04 @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
@@ -941,12 +941,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 34c5089

Please sign in to comment.