table-for 0.0.10 → 0.0.11

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.10
1
+ 0.0.11
data/lib/table-for.rb CHANGED
@@ -1,2 +1,13 @@
1
+ require "action_view"
2
+
3
+ $LOAD_PATH.unshift(File.dirname(__FILE__))
4
+
1
5
  require "table_for/table_for"
2
- require "table_for/engine"
6
+ require "table_for/helper_methods"
7
+ require "table_for/engine"
8
+
9
+ $LOAD_PATH.shift
10
+
11
+ if defined?(ActionView::Base)
12
+ ActionView::Base.send :include, TableFor::HelperMethods
13
+ end
@@ -1,12 +1,12 @@
1
1
  require "rails"
2
- require "table-for"
2
+ # require "table-for"
3
3
 
4
4
  module TableFor
5
5
  class Engine < Rails::Engine
6
- initializer "table_for.initialize_helpers" do
7
- ActiveSupport.on_load(:action_view) do
8
- include TableFor::HelperMethods
9
- end
10
- end
6
+ # initializer "table_for.initialize_helpers" do
7
+ # ActiveSupport.on_load(:action_view) do
8
+ # include TableFor::HelperMethods
9
+ # end
10
+ # end
11
11
  end
12
12
  end
File without changes
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: table-for
3
3
  version: !ruby/object:Gem::Version
4
- hash: 11
4
+ hash: 9
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 10
10
- version: 0.0.10
9
+ - 11
10
+ version: 0.0.11
11
11
  platform: ruby
12
12
  authors:
13
13
  - Andrew Hunter
@@ -101,10 +101,10 @@ files:
101
101
  - README.rdoc
102
102
  - Rakefile
103
103
  - VERSION
104
- - app/helpers/table_for/helper_methods.rb
105
104
  - app/views/table_for/_table_for.html.erb
106
105
  - lib/table-for.rb
107
106
  - lib/table_for/engine.rb
107
+ - lib/table_for/helper_methods.rb
108
108
  - lib/table_for/table_for.rb
109
109
  - rails/init.rb
110
110
  has_rdoc: true