Class: ActionBlocks::TableBlocksController
- Inherits:
-
BaseController
- Object
- ApplicationController
- BaseController
- ActionBlocks::TableBlocksController
- Defined in:
- app/controllers/action_blocks/table_blocks_controller.rb
Instance Method Summary collapse
Methods inherited from BaseController
Instance Method Details
#records ⇒ Object
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 |