gridion 0.0.26 → 0.0.27
Sign up to get free protection for your applications and to get access to all the features.
- data/MIT-LICENSE +1 -1
- data/README.textile +6 -1
- data/lib/gridion/grid_helper.rb +1 -1
- data/lib/gridion/version.rb +1 -1
- metadata +21 -5
data/MIT-LICENSE
CHANGED
data/README.textile
CHANGED
@@ -7,7 +7,12 @@ h2. Features
|
|
7
7
|
Use @grid@ helper to render table with various options.
|
8
8
|
|
9
9
|
<pre>
|
10
|
-
grid(@patents, :object_class=>Patent, :columns=>%w(coverage_countries_serial patent_number_serial title grant_date status availability_serial), :actions=>nil, :paginate=>false)
|
10
|
+
grid(@patents, :object_class=>Patent, :columns=>%w(coverage_countries_serial patent_number_serial title grant_date status availability_serial), :actions=>nil, :paginate=>false, :render_empty_grid=>true, :object_class=>Patent)
|
11
11
|
</pre>
|
12
12
|
|
13
|
+
h2. Parameters
|
14
|
+
h3. render__empty__grid
|
15
|
+
|
16
|
+
Render grid even if there is no data, you need to use that with :object__class as there is no model the grid could use to extract metadata against.
|
17
|
+
|
13
18
|
|
data/lib/gridion/grid_helper.rb
CHANGED
@@ -139,7 +139,7 @@ module Gridion
|
|
139
139
|
|
140
140
|
row_id="#{klass.name}_#{object.id}"
|
141
141
|
|
142
|
-
result << "<#{table_row_tag} id=\"#{row_id}\" class=\"#{options[:row_is_even] ? 'even' : 'odd'}\">"
|
142
|
+
result << "<#{table_row_tag} id=\"#{row_id}\" data-id=\"#{object.id}\" class=\"#{options[:row_is_even] ? 'even' : 'odd'}\">"
|
143
143
|
(columns).each do |col|
|
144
144
|
if aux_columns[col].present?
|
145
145
|
value=aux_columns[col].call(object, options)
|
data/lib/gridion/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gridion
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.27
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,8 +9,24 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-08-31 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: rails
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>'
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 3.1.0
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>'
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 3.1.0
|
14
30
|
- !ruby/object:Gem::Dependency
|
15
31
|
name: sqlite3
|
16
32
|
requirement: !ruby/object:Gem::Requirement
|
@@ -102,7 +118,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
102
118
|
version: '0'
|
103
119
|
segments:
|
104
120
|
- 0
|
105
|
-
hash:
|
121
|
+
hash: 2906328453226057396
|
106
122
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
107
123
|
none: false
|
108
124
|
requirements:
|
@@ -111,10 +127,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
111
127
|
version: '0'
|
112
128
|
segments:
|
113
129
|
- 0
|
114
|
-
hash:
|
130
|
+
hash: 2906328453226057396
|
115
131
|
requirements: []
|
116
132
|
rubyforge_project:
|
117
|
-
rubygems_version: 1.8.
|
133
|
+
rubygems_version: 1.8.24
|
118
134
|
signing_key:
|
119
135
|
specification_version: 3
|
120
136
|
summary: Simple grid helper for rails
|