Properly use scope in views generator.

This commit is contained in:
José Valim 2010-04-12 04:39:16 -07:00
parent d2ebaa43ec
commit 32d37cebed
1 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ class DeviseViewsGenerator < Rails::Generators::Base
verify_haml_version
create_and_copy_haml_views
else
directory "devise", "app/views/devise/#{scope}"
directory "devise", "app/views/#{scope || 'devise'}"
end
end
@ -56,7 +56,7 @@ class DeviseViewsGenerator < Rails::Generators::Base
end
end
directory haml_root, "app/views/devise/#{scope}"
directory haml_root, "app/views/#{scope || 'devise'}"
end
end
end