ubicloud/model/ai
Jeremy Evans 14a181620c Add ResourceMethods plugin encrypted_columns argument
This DRYs up setting up encrypted columns for a model. You just
need to specify the column or columns to be encrypted, and the
plugin takes care of setting up the column_encryption plugin.

Other advantages:

* Model.redacted_columns is now an attr_reader, and does not
  need to check for encrypted columns every time it is called.

* Model#before_destroy can look at Model.encrypted_columns (also
  an attr_reader), so it is simplified as well. Simplify the
  method while here by using hash key omission, and make sure
  the constant it uses is frozen.
2025-07-09 05:45:18 +09:00
..
inference_endpoint.rb Convert SemaphoreMethods to Sequel plugin 2025-07-09 00:42:44 +09:00
inference_endpoint_replica.rb Convert SemaphoreMethods to Sequel plugin 2025-07-09 00:42:44 +09:00
inference_router.rb Convert SemaphoreMethods to Sequel plugin 2025-07-09 00:42:44 +09:00
inference_router_model.rb Convert ResourceMethods to a plugin 2025-06-04 04:55:45 +09:00
inference_router_replica.rb Convert SemaphoreMethods to Sequel plugin 2025-07-09 00:42:44 +09:00
inference_router_target.rb Add ResourceMethods plugin encrypted_columns argument 2025-07-09 05:45:18 +09:00