Module: AuthJwt::ControllerAdditions
- Defined in:
- lib/auth_jwt/controller_additions.rb
Overview
Include #login_user and #require_auth and @current_user to all Controllers.
Defined Under Namespace
Modules: InstanceMethods
Class Method Summary collapse
-
.included(klass) ⇒ Object
Add InstanceMethods.
Class Method Details
.included(klass) ⇒ Object
Add InstanceMethods
5 6 7 8 9 |
# File 'lib/auth_jwt/controller_additions.rb', line 5 def self.included(klass) klass.class_eval do include InstanceMethods end end |