Permalink
Browse files

Turn the k variable into a string, not the "key" string...

  • Loading branch information...
Johan Vermeulen
Johan Vermeulen committed Apr 14, 2011
1 parent a6695b7 commit c832026cc96fa6752e16081a68a188d5a9c6a7e2
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/rich/cms/content/group.rb
@@ -37,8 +37,8 @@ def to_javascript_hash
"#{self.selector.inspect}: {#{
members.collect do |k|
if v = self[k]
- case k
- when "key".to_s
+ case k.to_s
+ when "key"
"keys: [#{
[v].flatten.collect do |key|
"data-#{key}".inspect

0 comments on commit c832026

Please sign in to comment.