Module: Olyx::Guardrails::Rails::Controller
- Defined in:
- lib/olyx/guardrails/rails/controller.rb
Overview
Adds private guardrail helpers to an Action Controller class.
Include this concern only in controllers that own an AI input or output boundary. It does not scan parameters automatically.
class AiRequestsController < ApplicationController
include Olyx::Guardrails::Rails::Controller
def create
guardrails_check!(params.require(:prompt))
end
end