1
0
Fork 0
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:
vagmi 2011-01-11 18:56:43 +08:00 committed by José Valim
parent 6e91edd5e3
commit d87521723d

View file

@ -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