rubenrails / acts_as_opengraph

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

Does this work with included module in the model? #9

Closed apraditya closed 11 years ago

apraditya commented 11 years ago

First of all, thank you for making this awesome gem.

I create a module with methods like opengraph_title, opengraph_description etc and included that in the model but it doesn't work.

Even calling the included methods doesn't work. Created a gist describing my situation. I have no idea what prevent this. And I think it's quite common to put these methods in a module like this.

Thanks!

apraditya commented 11 years ago

Hi, I found the work around to this problem. You can't use the same method in the new module. Here's the correction based on the previous gist.