samedi 15 février 2020

How to automatically include some where conditions in rails model?

I have several models with office_id, fiscal_year_id attributes. I want these field to automatically set before querying. So, I don't have to care about data overlapping from one office to another and one fiscal year to another.

Aucun commentaire:

Enregistrer un commentaire