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 +4 -4
- data/lib/mongoid_i18n_rails/railtie.rb +4 -7
- data/lib/mongoid_i18n_rails/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2e9d24e77200d8dd8dc864eb93a333e92f699f93
|
4
|
+
data.tar.gz: 385435e4fa9095b871f885f9738d5fbda5b00760
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
7
|
-
|
8
|
-
|
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
|