tubular 0.0.2 → 0.0.3

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.
@@ -1,7 +1,9 @@
1
1
  require "tubular/helper"
2
2
 
3
- class Tubular::Railtie < Rails::Railtie
4
- config.before_initialize do
5
- ActionView::Base.send(:include, Tubular::Helper)
6
- end
7
- end
3
+ module Tubular
4
+ class Railtie < Rails::Railtie
5
+ initializer "tubular_railtie.configure_rails_initialization" do
6
+ ActionView::Base.send(:include, Tubular::Helper)
7
+ end
8
+ end # class Railtie
9
+ end # module Tubular
@@ -1,3 +1,3 @@
1
1
  module Tubular
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
data/lib/tubular.rb CHANGED
@@ -1,6 +1,6 @@
1
- require "tubular/railtie" if defined?(Rails)
2
- require "tubular/builder"
3
- require "tubular/column"
4
-
5
1
  module Tubular
6
2
  end
3
+
4
+ require "tubular/builder"
5
+ require "tubular/column"
6
+ require "tubular/railtie" if defined?(Rails)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tubular
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: