mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Initialize @as before plural method is called.
This commit is contained in:
@@ -676,6 +676,7 @@ module ActionDispatch
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user