Sha256: 4ec419b26493153661e73866514c3f1f9132608b2c068721ae816b73696a2011

Contents?: true

Size: 538 Bytes

Versions: 14

Compression:

Stored size: 538 Bytes

Contents

# frozen_string_literal: true

class Custom::SessionsController < DeviseJwtAuth::SessionsController
  def create
    super do |resource|
      @create_block_called = true unless resource.nil?
    end
  end

  def destroy
    super do |resource|
      @destroy_block_called = true unless resource.nil?
    end
  end

  def create_block_called?
    @create_block_called == true
  end

  def destroy_block_called?
    @destroy_block_called == true
  end

  protected

  def render_create_success
    render json: { custom: 'foo' }
  end
end

Version data entries

14 entries across 14 versions & 3 rubygems

Version Path
devise_jwt_auth722-0.1.7 test/dummy/app/controllers/custom/sessions_controller.rb
devise_jwt_auth7-0.1.7 test/dummy/app/controllers/custom/sessions_controller.rb
devise_jwt_auth-0.4.1 test/dummy/app/controllers/custom/sessions_controller.rb
devise_jwt_auth-0.4.0 test/dummy/app/controllers/custom/sessions_controller.rb
devise_jwt_auth-0.3.0 test/dummy/app/controllers/custom/sessions_controller.rb
devise_jwt_auth-0.2.0 test/dummy/app/controllers/custom/sessions_controller.rb
devise_jwt_auth-0.1.7 test/dummy/app/controllers/custom/sessions_controller.rb
devise_jwt_auth-0.1.6 test/dummy/app/controllers/custom/sessions_controller.rb
devise_jwt_auth-0.1.5 test/dummy/app/controllers/custom/sessions_controller.rb
devise_jwt_auth-0.1.4 test/dummy/app/controllers/custom/sessions_controller.rb
devise_jwt_auth-0.1.3 test/dummy/app/controllers/custom/sessions_controller.rb
devise_jwt_auth-0.1.2 test/dummy/app/controllers/custom/sessions_controller.rb
devise_jwt_auth-0.1.1 test/dummy/app/controllers/custom/sessions_controller.rb
devise_jwt_auth-0.1.0 test/dummy/app/controllers/custom/sessions_controller.rb