lazy_high_charts 1.0.7 → 1.0.8
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/lazy_high_charts/railtie.rb +15 -0
- data/lib/lazy_high_charts/version.rb +1 -1
- metadata +3 -2
@@ -0,0 +1,15 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
require 'lazy_high_charts'
|
4
|
+
require 'lazy_high_charts/high_charts_helper.rb'
|
5
|
+
|
6
|
+
require 'rails'
|
7
|
+
|
8
|
+
module LazyHighCharts
|
9
|
+
class Railtie < Rails::Railtie
|
10
|
+
initializer 'lazy_high_charts.initialize', :after => :after_initialize do
|
11
|
+
ActionView::Base.send :include, LazyHighCharts::LayoutHelper
|
12
|
+
ActionView::Base.send(:include, LazyHighCharts::LayoutHelper)
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 1
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 1.0.
|
8
|
+
- 8
|
9
|
+
version: 1.0.8
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Miguel Michelson Martinez
|
@@ -100,6 +100,7 @@ files:
|
|
100
100
|
- lib/lazy_high_charts.rb
|
101
101
|
- lib/lazy_high_charts/high_chart.rb
|
102
102
|
- lib/lazy_high_charts/high_charts_helper.rb
|
103
|
+
- lib/lazy_high_charts/railtie.rb
|
103
104
|
- lib/lazy_high_charts/version.rb
|
104
105
|
- rails/init.rb
|
105
106
|
- spec/high_chart_spec.rb
|