Avoiding ActiveRecord callbacks

my products:
typefast.gumroad.com/
work with me:
www.typefast.co/services/

Пікірлер: 7

  • @swswisssw
    @swswisssw2 ай бұрын

    make a video where you will do the all process of installation ruby and rails on a Mac OS from scratch.

  • @cocoarecords

    @cocoarecords

    2 ай бұрын

    For real man!!! No gd explanation out there

  • @codeline9387
    @codeline93873 ай бұрын

    Thus, the active recording pattern is broken, the model can still become fat, it is better to move such code into service objects

  • @jiachen1078
    @jiachen10783 ай бұрын

    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

    @ledockol

    3 ай бұрын

    Looks a little complicated)

  • @ledockol

    @ledockol

    3 ай бұрын

    (user.attributes.keys & ['extra', 'api_key', 'jira_domain']).any?