Skip to content
Browse files

Initialize @as before plural method is called.

  • Loading branch information...
1 parent 5ced275 commit bb2f53b4090768e4750af66c6fed15d6596bb11c @miloops miloops committed
Showing with 1 addition and 0 deletions.
  1. +1 −0 actionpack/lib/action_dispatch/routing/mapper.rb
View
1 actionpack/lib/action_dispatch/routing/mapper.rb
@@ -676,6 +676,7 @@ class SingletonResource < Resource #:nodoc:
DEFAULT_ACTIONS = [:show, :create, :update, :destroy, :new, :edit]
def initialize(entities, options)
+ @as = nil
@name = entities.to_s
@path = (options.delete(:path) || @name).to_s
@controller = (options.delete(:controller) || plural).to_s

0 comments on commit bb2f53b

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