Class: ActionBlocks::BaseController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- ActionBlocks::BaseController
- Defined in:
- app/controllers/action_blocks/base_controller.rb
Direct Known Subclasses
BarchartBlocksController, BlocksController, CommandBlocksController, FormBlocksController, ModelBlocksController, TableBlocksController, WorkspaceBlocksController
Instance Method Summary collapse
Instance Method Details
#validate_action_block ⇒ Object
10 11 12 13 14 15 16 17 18 |
# File 'app/controllers/action_blocks/base_controller.rb', line 10 def validate_action_block if Rails.env.development? || Rails.env.test? if ActionBlocks.invalid? Rails.logger.error "ActionBlock application invalid" Rails.logger.error ActionBlocks.errors raise "ActionBlock application invalid #{ActionBlocks.errors}" end end end |