rubenrails / acts_as_opengraph

ActiveRecord extension that turns your models into Facebook's Open Graph objects.
MIT License
53 stars 17 forks source link

:site_name should not be dasherized #3

Closed speermahi closed 13 years ago

speermahi commented 13 years ago

According to the facebook documentation, the "og:site_name" key should be written with underscores instead of a dash. The problem is, that the helper method calls .dasherize to all attributes, which generates "og:site-name" as output.

I think this should be fixed in the helper method or can this be solved otherwise?

Thank you!

rubenrails commented 13 years ago

Hi there, thanks for reporting this, I'm about to push a fix for this bug.

speermahi commented 13 years ago

Thank you for the quick fix and your awesome work!