mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Initialize @as before plural method is called.
This commit is contained in:
parent
5ced275ac1
commit
bb2f53b409
1 changed files with 1 additions and 0 deletions
|
@ -676,6 +676,7 @@ module ActionDispatch
|
||||||
DEFAULT_ACTIONS = [:show, :create, :update, :destroy, :new, :edit]
|
DEFAULT_ACTIONS = [:show, :create, :update, :destroy, :new, :edit]
|
||||||
|
|
||||||
def initialize(entities, options)
|
def initialize(entities, options)
|
||||||
|
@as = nil
|
||||||
@name = entities.to_s
|
@name = entities.to_s
|
||||||
@path = (options.delete(:path) || @name).to_s
|
@path = (options.delete(:path) || @name).to_s
|
||||||
@controller = (options.delete(:controller) || plural).to_s
|
@controller = (options.delete(:controller) || plural).to_s
|
||||||
|
|
Loading…
Reference in a new issue