Skip to content

Commit

Permalink
oh my... how did that sneak in? it's attributes.to_hash not to_haml
Browse files Browse the repository at this point in the history
  • Loading branch information
azul committed Sep 30, 2010
1 parent 3a3fadc commit 331c868
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ def complete_word?(node)
# will represent your attributes consistently across all nodes (for
# example, +Textile+ always shows class an id inside parenthesis.)
def attributes(node)
node.attributes.to_haml.inject({}) do |attrs,(key,value)|
node.attributes.to_hash.inject({}) do |attrs,(key,value)|
attrs[key.to_sym] = value if whitelisted_attributes.include?(key.to_sym)
attrs
end
Expand Down

0 comments on commit 331c868

Please sign in to comment.