i18n_structure 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
@@ -44,7 +44,7 @@ class I18nStructureGenerator < Rails::Generators::NamedBase
|
|
44
44
|
end
|
45
45
|
|
46
46
|
def create_ar_locales(locale_name)
|
47
|
-
table_names = ActiveRecord::Base.connection.tables.reject{|name| name == "schema_migrations"}
|
47
|
+
table_names = ActiveRecord::Base.connection.tables.reject{|name| name == "schema_migrations"}.collect{|c| c.singularize}
|
48
48
|
ar_path = "config/locales/#{locale_name}/ar"
|
49
49
|
empty_directory ar_path if table_names.any?
|
50
50
|
table_names.each do |table_name|
|