rgviz-rails 0.14 → 0.15

Sign up to get free protection for your applications and to get access to all the features.
@@ -101,7 +101,7 @@ module Rgviz
101
101
  @model_class.send(:columns).each do |col|
102
102
  @table.cols << (Column.new :id => col.name, :type => (rails_column_type col), :label => column_label(col.name))
103
103
  @selects << "(#{col.name}) as c#{i}"
104
- @original_columns << col_to_s
104
+ @original_columns << col.name
105
105
  i += 1
106
106
  end
107
107
  end
@@ -202,21 +202,11 @@ describe Executor do
202
202
  Person.make :age => 3
203
203
 
204
204
  table = exec 'select age where age > 1', :conditions => 'age < 3'
205
- it "processes with conditions as string" do
206
- Person.make :age => 1
207
- Person.make :age => 2
208
- Person.make :age => 3
209
-
210
- table = exec 'select age', :conditions => 'age = 2'
211
205
 
212
206
  table.rows.length.should == 1
213
207
  table.rows[0].c.length.should == 1
214
208
  table.rows[0].c[0].v.should == 2
215
209
  end
216
- table.rows.length.should == 1
217
- table.rows[0].c.length.should == 1
218
- table.rows[0].c[0].v.should == 2
219
- end
220
210
 
221
211
  it "processes with conditions as array" do
222
212
  Person.make :age => 1
metadata CHANGED
@@ -1,12 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rgviz-rails
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
- - 14
9
- version: "0.14"
8
+ - 15
9
+ version: "0.15"
10
10
  platform: ruby
11
11
  authors:
12
12
  - Ary Borenszweig