Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to change the default acts_as_commentable model 'Comment' to 'UserComment'. #79

Open
barun123 opened this issue Jun 30, 2014 · 1 comment

Comments

@barun123
Copy link

By default, acts_as_commentable will assume you are using a Comment model. To change this: we need to pass a hash with it:

acts_as_commentable { class_name: 'MyComment' }

Doing the same for the gem but recieving the error:

wrong no of arguments 1 for 0.

As it acts_as_commentable method don't have options in it.

@jpdimond
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants