gridion 0.0.26 → 0.0.27

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,4 @@
1
- Copyright 2011 YOURNAME
1
+ Copyright 2011 Tofugear Limited
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
@@ -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
 
@@ -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)
@@ -1,3 +1,3 @@
1
1
  module Gridion
2
- VERSION = "0.0.26"
2
+ VERSION = "0.0.27"
3
3
  end
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.26
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-05-08 00:00:00.000000000 Z
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: 2444358386732196709
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: 2444358386732196709
130
+ hash: 2906328453226057396
115
131
  requirements: []
116
132
  rubyforge_project:
117
- rubygems_version: 1.8.22
133
+ rubygems_version: 1.8.24
118
134
  signing_key:
119
135
  specification_version: 3
120
136
  summary: Simple grid helper for rails