Created
July 20, 2016 02:41
-
-
Save gabu/d31ab53ebd8022e7df6d16440aee43aa to your computer and use it in GitHub Desktop.
Rename classes for Rails 5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# app/models | |
git grep -l ActiveRecord::Base -- app/models | xargs sed -i '' "s/ActiveRecord::Base/ApplicationRecord/g" | |
# test/controllers | |
git grep -l ActionController::TestCase -- test/controllers | xargs sed -i '' "s/ActionController::TestCase/ActionDispatch::IntegrationTest/g" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment