Sha256: e89104b46ed32bb931d12c3126422f3d51d1927b8a01a92503f09c6731d75f86

Contents?: true

Size: 531 Bytes

Versions: 3

Compression:

Stored size: 531 Bytes

Contents

class Custom::PasswordsController < DeviseTokenAuth::PasswordsController

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

  def edit
    super do |resource|
      @edit_block_called = true
    end
  end

  def update
    super do |resource|
      @update_block_called = true
    end
  end

  def create_block_called?
    @create_block_called == true
  end

  def edit_block_called?
    @edit_block_called == true
  end

  def update_block_called?
    @update_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/passwords_controller.rb
devise_token_auth-0.1.33 test/dummy/app/controllers/custom/passwords_controller.rb
devise_token_auth-0.1.32 test/dummy/app/controllers/custom/passwords_controller.rb