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|
@@ -1,3 +1,3 @@
1
1
  module I18nStructure
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: i18n_structure
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: