Wallaby::ActiveRecord
Wallaby::ActiveRecord
adapter is designed to seamlessly integrate ActiveRecord models and instances with the Wallaby::Core
interfaces, enabling smooth handling of CRUD operations, authorization, and pagination.
Key features of Wallaby::ActiveRecord
include:
- Offer built-in compatibility with popular authorization frameworks like CanCanCan and Pundit, allowing you to easily manage access control for your ActiveRecord models.
- Fully support all Rails associations (
belongs_to
,has_one
,has_many
,has_and_belongs_to_many
). - All PostgreSQL types supported by Rails are fully supported to ensure smooth handling of data with different types.
- Facilitate the normalization of data during form submissions, specifically for
binary
,point
andrange
types. - Provide the flexibility to define custom filters for the
index
action, enabling you to create tailored queries based on your specific requirements. - Allow sorting for single or multiple columns and provide
nulls
sorting option, enhancing the control and precision of result ordering. - Support STI (Single Table Inheritance)
- Offer advance search capabilities using a convenient colon syntax, empowering users to perform precise searches with ease.
Install
Add Wallaby::ActiveRecord
to Gemfile
.
gem 'wallaby-active_record'
And re-bundle.
bundle install
Documentation
Want to contribute?
Raise an issue, discuss and resolve!
License
This project uses MIT License.