Class: ActionBlocks::TableBlocksController

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

Instance Method Summary collapse

Methods inherited from BaseController

#validate_action_block

Instance Method Details

#recordsObject



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

def records
  params.permit([:block_key, :subspace_model_id, :dashboard_model_id])
  user = current_user
  table = ActionBlocks.find(params[:block_key])
  render json: table.to_json(user: current_user, params: params)
end