Browse files

Make locale part of the installation process.

  • Loading branch information...
1 parent 9a658d5 commit cdd3551a68d70cbf89084c9b9c493e598f921013 @josevalim josevalim committed Dec 15, 2009
View
4 CHANGELOG.rdoc
@@ -1,3 +1,7 @@
+* deprecation
+ * Renamed reset_confirmation! to resend_confirmation!
+ * Copying locale is part of the installation process
+
* bug fix
* Fixed render_with_scope to work with all controllers
* Allow sign in with two different users in Devise::TestHelpers
View
6 generators/devise_install/devise_install_generator.rb
@@ -2,7 +2,11 @@ class DeviseInstallGenerator < Rails::Generator::Base
def manifest
record do |m|
- m.template "devise.rb", "config/initializers/devise.rb"
+ m.directory "config/initializers"
+ m.template "devise.rb", "config/initializers/devise.rb"
+
+ m.directory "config/locales"
+ m.file "../../../lib/devise/locales/en.yml", "config/locales/devise.en.yml"
end
end
View
3 generators/devise_views/devise_views_generator.rb
@@ -15,9 +15,6 @@ def manifest
m.directory File.dirname(file)
m.file file, file
end
-
- m.directory "config/locales"
- m.file "lib/devise/locales/en.yml", "config/locales/devise.en.yml"
end
end

0 comments on commit cdd3551

Please sign in to comment.