Sha256: abf1faf2e747ba021908b7abed96a1f61a3c9c160922f8c542751e2e90ee4371

Contents?: true

Size: 611 Bytes

Versions: 7

Compression:

Stored size: 611 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

  protected

  def render_update_success
    render json: {custom: "foo"}
  end


end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
devise_token_auth-0.1.37 test/dummy/app/controllers/custom/passwords_controller.rb
devise_token_auth-0.1.37.beta4 test/dummy/app/controllers/custom/passwords_controller.rb
devise_token_auth-0.1.37.beta3 test/dummy/app/controllers/custom/passwords_controller.rb
devise_token_auth-0.1.37.beta2 test/dummy/app/controllers/custom/passwords_controller.rb
devise_token_auth-0.1.37.beta1 test/dummy/app/controllers/custom/passwords_controller.rb
devise_token_auth-0.1.36 test/dummy/app/controllers/custom/passwords_controller.rb
devise_token_auth-0.1.35 test/dummy/app/controllers/custom/passwords_controller.rb