tabletastic 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.rdoc +4 -0
- data/lib/tabletastic/table_builder.rb +3 -3
- data/lib/tabletastic/version.rb +1 -1
- metadata +3 -3
data/CHANGELOG.rdoc
CHANGED
@@ -69,7 +69,7 @@ module Tabletastic
|
|
69
69
|
content_tag(:tr) do
|
70
70
|
@table_fields.inject("") do |result,field|
|
71
71
|
result + content_tag(:th, field.heading, field.heading_html)
|
72
|
-
end
|
72
|
+
end.html_safe
|
73
73
|
end
|
74
74
|
end
|
75
75
|
end
|
@@ -81,14 +81,14 @@ module Tabletastic
|
|
81
81
|
rows += @template.content_tag_for(:tr, record, :class => rowclass) do
|
82
82
|
cells_for_row(record)
|
83
83
|
end + "\n"
|
84
|
-
end
|
84
|
+
end.html_safe
|
85
85
|
end
|
86
86
|
end
|
87
87
|
|
88
88
|
def cells_for_row(record)
|
89
89
|
@table_fields.inject("") do |cells, field|
|
90
90
|
cells + content_tag(:td, field.cell_data(record), field.cell_html)
|
91
|
-
end
|
91
|
+
end.html_safe
|
92
92
|
end
|
93
93
|
|
94
94
|
# Used internally to build up cells for common CRUD actions
|
data/lib/tabletastic/version.rb
CHANGED
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 2
|
8
|
-
-
|
9
|
-
version: 0.2.
|
8
|
+
- 1
|
9
|
+
version: 0.2.1
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Joshua Davey
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-
|
17
|
+
date: 2010-11-23 00:00:00 -06:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|