makandra / active_type

Make any Ruby object quack like ActiveRecord
MIT License
1.09k stars 74 forks source link

refactor 'cast_record' to use 'attr_accessor' from ActiveRecord::Base #178

Closed MaximilianoGarciaRoe closed 1 year ago

MaximilianoGarciaRoe commented 1 year ago

Hi there!

Apologies for the delay; I've been quite busy lately. However, I'm now sending the solution that addresses the issue I raised some time ago in the pull request.

https://github.com/makandra/active_type/issues/174

The idea is to enable the Active Type Record to have a base method for adding logic after executing the cast. This way, users can easily add business logic as needed.

I hope my contribution will be considered, and I genuinely appreciate your time and attention to this matter. Thank you!