Route overrides
Last updated
Was this helpful?
Last updated
Was this helpful?
This is the official documentation of the agent_ruby
Ruby agent.
allowed customizing the behavior of the routes exposed by the agent.
This very low-level feature was used to implement many use cases:
Attach handlers to events in the UI
Customize filtering, search and sort behaviors
Other advanced use cases.
Because our new agent API is higher-level, the protocol used to communicate between the agent and the application can no longer be manipulated.
Add custom permissions
Add validation to fields
Add validation to whole records
Run code on UI events
Change the search behavior
Change the filtering behavior of fields
Change the sort behavior of fields
Other use case
Define a new route into your routes.rb
file:
Add a new method in your controller.
Define a new route into your routes.rb
file.
Add a new method to your controller.
Use and throw forbidden errors
Use instead
Use and throw validation errors
Use to perform custom logic
Use to implement your custom search logic
Use
Use
If you are stuck or think that this guide can be improved, please and we will be happy to help you
Custom permissions would better be implemented by using the feature from the UI.