i18n_structure 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -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|
|