mirror of
https://github.com/heartcombo/devise.git
synced 2022-11-09 12:18:31 -05:00
fix create_haml_views. see issue 761 for details
accessing a variable before assigning causes nil exception
This commit is contained in:
parent
6e91edd5e3
commit
d87521723d
1 changed files with 2 additions and 2 deletions
|
@ -87,7 +87,7 @@ module Devise
|
|||
|
||||
Dir["#{html_root}/**/*"].each do |path|
|
||||
relative_path = path.sub(html_root, "")
|
||||
source_path = (@haml_tmp_root + relative_path).sub(/erb$/, "haml")
|
||||
source_path = (haml_tmp_root + relative_path).sub(/erb$/, "haml")
|
||||
|
||||
if File.directory?(path)
|
||||
FileUtils.mkdir_p(source_path)
|
||||
|
@ -103,4 +103,4 @@ module Devise
|
|||
alias :haml_tmp_root :create_haml_views
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue