Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Copy locale on devise_views and release 0.3.0

  • Loading branch information...
commit 5f498522dfd9028fe2e2e0d38a0079e7c9037534 1 parent b28d7e8
@josevalim josevalim authored
View
14 generators/devise_views/devise_views_generator.rb
@@ -2,20 +2,22 @@ class DeviseViewsGenerator < Rails::Generator::Base
def initialize(*args)
super
- @source_root = options[:source] || File.join(spec.path, '..', '..', 'app', 'views')
+ @source_root = options[:source] || File.join(spec.path, '..', '..')
end
def manifest
record do |m|
- views_directory = File.join('app', 'views')
- m.directory views_directory
+ m.directory "app/views"
- Dir[File.join(@source_root, "**/*.erb")].each do |file|
+ Dir[File.join(@source_root, "app", "views", "**/*.erb")].each do |file|
file = file.gsub(@source_root, "")[1..-1]
- m.directory File.join(views_directory, File.dirname(file))
- m.file file, File.join(views_directory, file)
+ 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
View
2  lib/devise/version.rb
@@ -1,3 +1,3 @@
module Devise
- VERSION = "0.2.3".freeze
+ VERSION = "0.3.0".freeze
end
Please sign in to comment.
Something went wrong with that request. Please try again.