jackdempsey / acts_as_commentable

The ActiveRecord acts_as_commentable plugin
http://juixe.com/svn/acts_as_commentable/
MIT License
834 stars 176 forks source link

Can I use acts_as_commentable with any model name other than Comment? #25

Closed tnzk closed 12 years ago

tnzk commented 12 years ago

Hi,

I have tried to 'rails g comment' but it failed because the model that aac tried to generate is already exists. I know I have a model named Comment already, so is there any ways to force aac to use the model name other than comment?

Best regards,

jackdempsey commented 12 years ago

Hi Kurazeko,

Sorry, that functionality doesn't exist. What I would do as a quick hack is to temporarily rename your Comment model, generate the comment model that AAC needs, and then compare the two and see if the functionality for both can live in one model.

On Wed, Sep 5, 2012 at 3:40 AM, KURAZEKO Kyohe notifications@github.comwrote:

Hi,

I have tried to 'rails g comment' but it failed because the model that aac tried to generate is already exists. I know I have a model named Comment already, so is there any ways to force aac to use the model name other than comment?

Best regards,

— Reply to this email directly or view it on GitHubhttps://github.com/jackdempsey/acts_as_commentable/issues/25.

tnzk commented 12 years ago

Okay. I've simply dropped old comment table and then generated AAC's.