Skip to content
This repository
Browse code

Make use of the inherited initializer.

  • Loading branch information...
commit 34c50895b40816adb6eb266cb34f8780380f8c04 1 parent 0753d0b
thedarkone authored

Showing 1 changed file with 2 additions and 3 deletions. Show diff stats Hide diff stats

  1. +2 3 actionpack/lib/action_dispatch/routing/mapper.rb
5 actionpack/lib/action_dispatch/routing/mapper.rb
@@ -941,12 +941,11 @@ class SingletonResource < Resource #:nodoc:
941 941 DEFAULT_ACTIONS = [:show, :create, :update, :destroy, :new, :edit]
942 942
943 943 def initialize(entities, options)
  944 + super
  945 +
944 946 @as = nil
945   - @name = entities.to_s
946   - @path = (options[:path] || @name).to_s
947 947 @controller = (options[:controller] || plural).to_s
948 948 @as = options[:as]
949   - @options = options
950 949 end
951 950
952 951 def plural

0 comments on commit 34c5089

Please sign in to comment.
Something went wrong with that request. Please try again.