Sha256: e1f1986695bd40a9ee14005f2e735afe1cd44449b9264d3a6fca45314f616ffb
Contents?: true
Size: 674 Bytes
Versions: 8
Compression:
Stored size: 674 Bytes
Contents
class Custom::PasswordsController < DeviseTokenAuth::PasswordsController def create super do |resource| @create_block_called = true unless resource.nil? end end def edit super do |resource| @edit_block_called = true unless resource.nil? end end def update super do |resource| @update_block_called = true unless resource.nil? 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
8 entries across 8 versions & 2 rubygems