Class: ActionBlocks::FormBlocksController

Inherits:
BaseController
  • Object
show all
Defined in:
app/controllers/action_blocks/form_blocks_controller.rb

Instance Method Summary collapse

Methods inherited from BaseController

#validate_action_block

Instance Method Details

#recordObject



6
7
8
9
10
# File 'app/controllers/action_blocks/form_blocks_controller.rb', line 6

def record
  form = ActionBlocks.find(params[:block_key])
  record_id = Integer(params[:record_id])
  render json: form.record_to_json(user: current_user, record_id: record_id)
end