README.md in friendly_id-5.2.0 vs README.md in friendly_id-5.2.1
- old
+ new
@@ -177,10 +177,10 @@
rails generate scaffold user name:string slug:string:uniq
rake db:migrate
```
```ruby
# edit app/models/user.rb
-class User < ActiveRecord::Base
+class User < ApplicationRecord
extend FriendlyId
friendly_id :name, use: :slugged
end
User.create! name: "Joe Schmoe"