README.md in token_authenticate_me-0.2.1 vs README.md in token_authenticate_me-0.2.2
- old
+ new
@@ -17,20 +17,20 @@
**Right now this gem only supports creating the authentication model `User`, so it is recommended to call `rails generate token_authenticate_me:install user`**
Include TokenAuthenticateMe::TokenAuthentication into the application controller or any controllers that require authorization:
````rb
-require 'token_authenticate_me/token_authentication'
+require 'token_authenticate_me/controllers/token_authenticateable'
class ApplicationController < ActionController::Base
force_ssl if Rails.env.production?
# Prevent CSRF attacks by raising an exception.
# For APIs, you may want to use :null_session instead.
protect_from_forgery with: :exception
- include TokenAuthenticateMe::TokenAuthentication
+ include TokenAuthenticateMe::Controllers::TokenAuthenticateable
#...
end
````
@@ -41,7 +41,8 @@
# Allow new users to create an account
skip_before_action :authenticate, only: [:create]
end
````
-### TODO:
-[ ] - Make it so any resource name can be used for authentication (initial thought is either specify the default or pass resource name in token string?).
+#### TODO:
+- [ ] Make it so any resource name can be used for authentication (initial thought is either specify the default or pass resource name in token string?).
+- [ ] Allow users to specify the API namespace default.