README.md in tiny_auth-1.0.0 vs README.md in tiny_auth-2.0.0
- old
+ new
@@ -54,12 +54,12 @@
Oh, and you can add authentication to your controllers:
```ruby
class ApplicationController < ActionController::Base
- extend TinyAuth::Controller
+ include TinyAuth::Controller.new(model: User)
- authenticates model: User
+ before_action :authenticate_user
def index
if user_signed_in?
render json: {id: current_user.id}
else