mongoid_i18n_rails 0.0.1 → 0.0.2
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 +16 -0
- data/lib/mongoid_i18n_rails/version.rb +1 -1
- data/lib/mongoid_i18n_rails.rb +2 -0
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f67e59b4217e66292c8343de5792f86d9617a6fd
|
4
|
+
data.tar.gz: 1597ce8a35db2dccfbad98b0172023bd06810108
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 77dac5e4bb979119ae8bb739c3972ab86aef751c8c661bf0a5d6550a749b7b47674c2f4bb7b11490f7949e12db0d935f4d7c4984695ee9122ad06a92eabb6e5b
|
7
|
+
data.tar.gz: 495dafeeba4299793f12881c38e6ac3d0115d699a40ed6dc98c9f07a7b8ee01ca597717164c36b10ccc1cf05d596075f7d49b56fd909fadc2ca43a62d2cc90c9
|
@@ -0,0 +1,16 @@
|
|
1
|
+
require 'rails'
|
2
|
+
|
3
|
+
module MongoidI18nRails
|
4
|
+
class Railtie < ::Rails::Railtie #:nodoc:
|
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
|
+
protected
|
11
|
+
def self.add(pattern)
|
12
|
+
files = Dir[File.join(File.dirname(__FILE__), '../..', pattern)]
|
13
|
+
I18n.load_path.concat(files)
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
data/lib/mongoid_i18n_rails.rb
CHANGED
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.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Leandro Moreira
|
@@ -35,6 +35,7 @@ files:
|
|
35
35
|
- README.rdoc
|
36
36
|
- Rakefile
|
37
37
|
- lib/mongoid_i18n_rails.rb
|
38
|
+
- lib/mongoid_i18n_rails/railtie.rb
|
38
39
|
- lib/mongoid_i18n_rails/version.rb
|
39
40
|
- lib/tasks/mongoid_i18n_rails_tasks.rake
|
40
41
|
- rails/locale/mongoid-en.yml
|