i18nliner 0.0.12 → 0.0.13
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/i18nliner/railtie.rb +12 -10
- metadata +2 -2
data/lib/i18nliner/railtie.rb
CHANGED
@@ -4,18 +4,20 @@ require 'i18nliner/extensions/model'
|
|
4
4
|
|
5
5
|
module I18nliner
|
6
6
|
class Railtie < Rails::Railtie
|
7
|
-
|
8
|
-
|
9
|
-
|
7
|
+
initializer 'i18nliner' do
|
8
|
+
ActiveSupport.on_load :action_controller do
|
9
|
+
ActionController::Base.send :include, I18nliner::Extensions::Controller
|
10
|
+
end
|
10
11
|
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
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
|
-
|
18
|
-
|
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.
|
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-
|
12
|
+
date: 2015-11-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|