Merge pull request #9083 from bronson/patch-1
avoid using alias in generators
This commit is contained in:
commit
fd552e597c
|
@ -30,7 +30,10 @@ module Rails
|
|||
|
||||
protected
|
||||
attr_reader :file_name
|
||||
alias :singular_name :file_name
|
||||
|
||||
def singular_name
|
||||
file_name
|
||||
end
|
||||
|
||||
# Wrap block with namespace of current application
|
||||
# if namespace exists and is not skipped
|
||||
|
|
Loading…
Reference in New Issue