i18nliner 0.0.12 → 0.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/lib/i18nliner/railtie.rb +12 -10
  2. metadata +2 -2
@@ -4,18 +4,20 @@ require 'i18nliner/extensions/model'
4
4
 
5
5
  module I18nliner
6
6
  class Railtie < Rails::Railtie
7
- ActiveSupport.on_load :action_controller do
8
- ActionController::Base.send :include, I18nliner::Extensions::Controller
9
- end
7
+ initializer 'i18nliner' do
8
+ ActiveSupport.on_load :action_controller do
9
+ ActionController::Base.send :include, I18nliner::Extensions::Controller
10
+ end
10
11
 
11
- ActiveSupport.on_load :action_view do
12
- require 'i18nliner/erubis'
13
- ActionView::Template::Handlers::ERB.erb_implementation = I18nliner::Erubis
14
- ActionView::Base.send :include, I18nliner::Extensions::View
15
- end
12
+ ActiveSupport.on_load :action_view do
13
+ require 'i18nliner/erubis'
14
+ ActionView::Template::Handlers::ERB.erb_implementation = I18nliner::Erubis
15
+ ActionView::Base.send :include, I18nliner::Extensions::View
16
+ end
16
17
 
17
- ActiveSupport.on_load :active_record do
18
- ActiveRecord::Base.send :include, I18nliner::Extensions::Model
18
+ ActiveSupport.on_load :active_record do
19
+ ActiveRecord::Base.send :include, I18nliner::Extensions::Model
20
+ end
19
21
  end
20
22
 
21
23
  rake_tasks do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: i18nliner
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.12
4
+ version: 0.0.13
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-07-27 00:00:00.000000000 Z
12
+ date: 2015-11-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport