rgviz-rails 0.35 → 0.36

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/lib/rgviz_rails/executor.rb +1 -1
  2. metadata +3 -3
@@ -90,7 +90,7 @@ module Rgviz
90
90
  i = 0
91
91
  @model_class.send(:columns).each do |col|
92
92
  @table.cols << (Column.new :id => col.name, :type => (rails_column_type col), :label => column_label(col.name))
93
- @selects << "(#{col.name}) as c#{i}"
93
+ @selects << "(#{ActiveRecord::Base.connection.quote_column_name(col.name)}) as c#{i}"
94
94
  @original_columns << col.name
95
95
  i += 1
96
96
  end
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: 77
4
+ hash: 67
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
- - 35
9
- version: "0.35"
8
+ - 36
9
+ version: "0.36"
10
10
  platform: ruby
11
11
  authors:
12
12
  - Ary Borenszweig