Class: ActionBlocks::ModelBlocksController
- Inherits:
-
BaseController
- Object
- ApplicationController
- BaseController
- ActionBlocks::ModelBlocksController
- Defined in:
- app/controllers/action_blocks/model_blocks_controller.rb
Instance Method Summary collapse
Methods inherited from BaseController
Instance Method Details
#name ⇒ Object
6 7 8 9 10 |
# File 'app/controllers/action_blocks/model_blocks_controller.rb', line 6 def name model_block = ActionBlocks.find(params[:block_key]) record_id = Integer(params[:record_id]) render json: model_block.name_to_json(record_id: record_id, user: current_user) end |