Sha256: 80b6193645fbadcc23946fab4fec7115183ee5d28edf22720d0620c417b9ad0b

Contents?: true

Size: 386 Bytes

Versions: 3

Compression:

Stored size: 386 Bytes

Contents

class Custom::SessionsController < DeviseTokenAuth::SessionsController

  def create
    super do |resource|
      @create_block_called = true
    end
  end

  def destroy
    super do |resource|
      @destroy_block_called = true
    end
  end

  def create_block_called?
    @create_block_called == true
  end

  def destroy_block_called?
    @destroy_block_called == true
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
devise_token_auth-0.1.34 test/dummy/app/controllers/custom/sessions_controller.rb
devise_token_auth-0.1.33 test/dummy/app/controllers/custom/sessions_controller.rb
devise_token_auth-0.1.32 test/dummy/app/controllers/custom/sessions_controller.rb