File tree Expand file tree Collapse file tree 1 file changed +19
-14
lines changed Expand file tree Collapse file tree 1 file changed +19
-14
lines changed Original file line number Diff line number Diff line change 13
13
require 'active_admin/mongoid/helpers/collection'
14
14
require 'active_admin/mongoid/criteria'
15
15
16
- # module ActiveAdmin
17
- # module Mongoid
18
- # end
19
- #
20
- # class << self
21
- # alias setup_without_mongoid setup
22
- #
23
- # # Load monkey patches *after* the setup process
24
- # def setup *args, &block
25
- # setup_without_mongoid *args, &block
26
- #
27
- # end
28
- # end
29
- # end
16
+ module ActiveAdmin
17
+ module Mongoid
18
+ class Railtie < ::Rails ::Railtie
19
+ config . after_initialize do
20
+ I18n . backend . reload!
21
+ end
22
+ end
23
+ end
24
+
25
+ # class << self
26
+ # alias setup_without_mongoid setup
27
+ #
28
+ # # Load monkey patches *after* the setup process
29
+ # def setup *args, &block
30
+ # setup_without_mongoid *args, &block
31
+ #
32
+ # end
33
+ # end
34
+ end
You can’t perform that action at this time.
0 commit comments