spectabular 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/spectabular/helper.rb +1 -1
- data/lib/spectabular/version.rb +1 -1
- metadata +8 -8
data/lib/spectabular/helper.rb
CHANGED
@@ -2,7 +2,6 @@ module Spectabular
|
|
2
2
|
module Helper
|
3
3
|
|
4
4
|
def table_for(collection,*columns)
|
5
|
-
@column_number = 0
|
6
5
|
columns = columns.first if columns.size <= 1
|
7
6
|
columns ||= default_columns_for(collection)
|
8
7
|
@table = Spectabular::Table.new( :collection => instance_variable_get("@#{collection}"),
|
@@ -46,6 +45,7 @@ module Spectabular
|
|
46
45
|
|
47
46
|
def mapped_body
|
48
47
|
@table.rows.map do |record,row|
|
48
|
+
@column_number = 0
|
49
49
|
content_tag(:tr, join_formatted(mapped_row(row)), :id => dom_id(record), :class => row_class_for(record) )
|
50
50
|
end
|
51
51
|
end
|
data/lib/spectabular/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spectabular
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-01-
|
12
|
+
date: 2012-01-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
16
|
-
requirement: &
|
16
|
+
requirement: &70294672902480 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: 3.2.0.rc2
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70294672902480
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: sqlite3
|
27
|
-
requirement: &
|
27
|
+
requirement: &70294672916840 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,7 +32,7 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70294672916840
|
36
36
|
description: Spectabular provides a helper method which turns ActiveModel resources
|
37
37
|
into tabular displays. It provides some minimal customization options.
|
38
38
|
email:
|
@@ -94,7 +94,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
94
94
|
version: '0'
|
95
95
|
segments:
|
96
96
|
- 0
|
97
|
-
hash:
|
97
|
+
hash: 1773474990839441423
|
98
98
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
99
99
|
none: false
|
100
100
|
requirements:
|
@@ -103,7 +103,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
103
103
|
version: '0'
|
104
104
|
segments:
|
105
105
|
- 0
|
106
|
-
hash:
|
106
|
+
hash: 1773474990839441423
|
107
107
|
requirements: []
|
108
108
|
rubyforge_project:
|
109
109
|
rubygems_version: 1.8.11
|