my products:typefast.gumroad.com/work with me:www.typefast.co/services/
make a video where you will do the all process of installation ruby and rails on a Mac OS from scratch.
For real man!!! No gd explanation out there
Thus, the active recording pattern is broken, the model can still become fat, it is better to move such code into service objects
Maybe we can try to use the intersect?(set)? e.g. `attributes.keys.to_set.intersect?([:user_name, :api_key, :jira_domain].to_set)`
Looks a little complicated)
(user.attributes.keys & ['extra', 'api_key', 'jira_domain']).any?
Пікірлер: 7
make a video where you will do the all process of installation ruby and rails on a Mac OS from scratch.
@cocoarecords
2 ай бұрын
For real man!!! No gd explanation out there
Thus, the active recording pattern is broken, the model can still become fat, it is better to move such code into service objects
Maybe we can try to use the intersect?(set)? e.g. `attributes.keys.to_set.intersect?([:user_name, :api_key, :jira_domain].to_set)`
@ledockol
3 ай бұрын
Looks a little complicated)
@ledockol
3 ай бұрын
(user.attributes.keys & ['extra', 'api_key', 'jira_domain']).any?