rgviz-rails 0.25 → 0.26

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 +6 -1
  2. metadata +3 -3
@@ -8,6 +8,7 @@ module Rgviz
8
8
  url = options[:url]
9
9
  query = options[:query] || ''
10
10
  events = options[:events] || {}
11
+ html = options[:html] || {}
11
12
  hidden = options[:hidden]
12
13
 
13
14
  html_prefix = (options[:html_prefix] || 'html').to_s
@@ -92,7 +93,11 @@ module Rgviz
92
93
  out << "</script>\n"
93
94
 
94
95
  # Write the div
95
- out << "<div id=\"#{id}\"></div>\n"
96
+ out << "<div id=\"#{id}\""
97
+ html.each do |key, value|
98
+ out << " #{key}=\"#{h value}\""
99
+ end
100
+ out << "></div>\n"
96
101
 
97
102
  out
98
103
  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: 57
4
+ hash: 63
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
- - 25
9
- version: "0.25"
8
+ - 26
9
+ version: "0.26"
10
10
  platform: ruby
11
11
  authors:
12
12
  - Ary Borenszweig