Module: HasJwtToken::HasJwtModelConfiguration
- Defined in:
- lib/has_jwt_token/has_jwt_model_configuration.rb
Instance Method Summary collapse
Instance Method Details
#has_jwt_token(model = nil) {|@has_jwt_token| ... } ⇒ Object
7 8 9 10 11 |
# File 'lib/has_jwt_token/has_jwt_model_configuration.rb', line 7 def has_jwt_token(model = nil) @has_jwt_token ||= JwtConfiguration.new yield(@has_jwt_token) if block_given? @has_jwt_token.tap { |jwt| jwt.model = model if model } end |