table_for_helper 0.2 → 0.21
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
|
|
1
|
-
require "
|
2
|
-
require "
|
1
|
+
require "table_for_helper/version"
|
2
|
+
require "table_for_helper/builder"
|
3
3
|
|
4
|
-
module
|
4
|
+
module TableForHelper
|
5
5
|
# Creates a html table from a resource collection
|
6
6
|
def table_for(resources, options = {}, &block)
|
7
7
|
Builder.new(resources, options, &block).to_html
|
@@ -9,5 +9,5 @@ module TableFor
|
|
9
9
|
end
|
10
10
|
|
11
11
|
ActionController::Base.class_eval do
|
12
|
-
helper
|
12
|
+
helper TableForHelper
|
13
13
|
end
|
data/table_for_helper.gemspec
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
|
-
require File.expand_path('../lib/
|
2
|
+
require File.expand_path('../lib/table_for_helper/version', __FILE__)
|
3
3
|
|
4
4
|
Gem::Specification.new do |gem|
|
5
5
|
gem.authors = ['Nick Nizovtsev']
|
@@ -13,5 +13,5 @@ Gem::Specification.new do |gem|
|
|
13
13
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
14
14
|
gem.name = "table_for_helper"
|
15
15
|
gem.require_paths = ["lib"]
|
16
|
-
gem.version =
|
16
|
+
gem.version = TableForHelper::VERSION
|
17
17
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: table_for_helper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '0.
|
4
|
+
version: '0.21'
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -23,9 +23,9 @@ files:
|
|
23
23
|
- LICENSE
|
24
24
|
- README.md
|
25
25
|
- Rakefile
|
26
|
-
- lib/
|
27
|
-
- lib/
|
28
|
-
- lib/
|
26
|
+
- lib/table_for_helper.rb
|
27
|
+
- lib/table_for_helper/builder.rb
|
28
|
+
- lib/table_for_helper/version.rb
|
29
29
|
- table_for_helper.gemspec
|
30
30
|
homepage: http://github.com/nizovtsevnv/table_for_helper
|
31
31
|
licenses: []
|
data/lib/table_for/version.rb
DELETED