Module: Nexo::ControllerHelper
- Defined in:
- app/helpers/nexo/controller_helper.rb
Instance Method Summary collapse
Instance Method Details
#nexo_integration_params(params) ⇒ Object
3 4 5 6 7 8 |
# File 'app/helpers/nexo/controller_helper.rb', line 3 def nexo_integration_params(params) # When upgrading to Rails 8, use "expect" params.require(:integration).permit(:client_id, :name, scope: []).tap do |it| raise Errors::InvalidParamsError, "scope is required" unless it[:scope].present? end end |