mongoid_i18n_rails 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c82fc572bb79a5db24f555f888fae36a79c6c9bf
4
- data.tar.gz: b1257ac512a103bfe605511ee156ee1c1f700c3f
3
+ metadata.gz: 2e9d24e77200d8dd8dc864eb93a333e92f699f93
4
+ data.tar.gz: 385435e4fa9095b871f885f9738d5fbda5b00760
5
5
  SHA512:
6
- metadata.gz: 2a74a3135f042a675a963bc14252922a761b3ad3fc92ca2737fcd58a376b65f5c11d6c660e5552efa67aeda6a07fcc0a85714fca53085801041e99736145e69f
7
- data.tar.gz: 61f1847d8fa1ebd9a1b9b42006ec93cc29765d6976eb2459a393b2750752e5d8b357e820de46dc8bc9315b30283c4ab1e86804e4d044d197ddb881e995d3c698
6
+ metadata.gz: 1afc1a24479e2e213c32f2c014cb22a6b77b7e0aad8fdfa3b6c7de2c5d2b1df6d5a25bd4e2f244bb0bc9b45b272dd9cf3cc40016410ed844c8b6c6079188da94
7
+ data.tar.gz: 58f9aa023e51489766a1b015301c6b2e568c802a6b61a39837ae79cbfb7977f979dcaebffe15298389d3a1e57752d0ebdc78f6b35661967d208d9fed6dbdd96f
@@ -3,13 +3,10 @@ require 'rails'
3
3
  module MongoidI18nRails
4
4
  class Railtie < ::Rails::Railtie #:nodoc:
5
5
  initializer 'mongoid-i18n-rails' do |app|
6
- add("rails/locale/mongoid-en.yml")
7
- add("rails/locale/mongoid-pt-BR.yml")
8
- end
9
-
10
- def self.add(pattern)
11
- files = Dir[File.join(File.dirname(__FILE__), '../..', pattern)]
12
- I18n.load_path.concat(files)
6
+ ["rails/locale/mongoid-en.yml", "rails/locale/mongoid-pt-BR.yml"].each do |pattern|
7
+ files = Dir[File.join(File.dirname(__FILE__), '../..', pattern)]
8
+ I18n.load_path.concat(files)
9
+ end
13
10
  end
14
11
  end
15
12
  end
@@ -1,3 +1,3 @@
1
1
  module MongoidI18nRails
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongoid_i18n_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Leandro Moreira