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

Rename model name #37

Merged
merged 2 commits into from
Jan 13, 2015
Merged

Rename model name #37

merged 2 commits into from
Jan 13, 2015

Conversation

mk
Copy link
Member

@mk mk commented Jan 13, 2015

Rename model_name to model_class_name for rails 4.2 compatibility.
To update, you must generate and run the migration:

bundle exec rails generate reportable_model_name_migration
bundle exec rake db:migrate

Fixes #36.

Run

    bundle exec rails generate reportable_model_name_migration
    bundle exec rake db:migrate
mk added a commit that referenced this pull request Jan 13, 2015
@mk mk merged commit ea259fd into master Jan 13, 2015
@mk mk deleted the rename-model-name branch January 13, 2015 12:00
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

Successfully merging this pull request may close these issues.

Rails 4.2 Instance method 'model_name' already implemented by Active Record.
1 participant