rgviz-rails 0.36 → 0.37

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/rgviz_rails/view_helper.rb +3 -3
  2. metadata +3 -3
@@ -416,15 +416,15 @@ module Rgviz
416
416
  end
417
417
 
418
418
  def visit_date_column(node)
419
- @s << node.to_s
419
+ @s << "date \"#{node.value.to_s}\""
420
420
  end
421
421
 
422
422
  def visit_date_time_column(node)
423
- @s << node.to_s
423
+ @s << "date \"#{node.value.strftime('%Y-%m-%d %H:%M:%S')}\""
424
424
  end
425
425
 
426
426
  def visit_time_of_day_column(node)
427
- @s << node.to_s
427
+ @s << "date \"#{node.value.strftime('%H:%M:%S')}\""
428
428
  end
429
429
 
430
430
  def visit_scalar_function_column(node)
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: 67
4
+ hash: 65
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
- - 36
9
- version: "0.36"
8
+ - 37
9
+ version: "0.37"
10
10
  platform: ruby
11
11
  authors:
12
12
  - Ary Borenszweig