app/models/concerns/twitter_user/utils.rb
# #diff calls this method in context of new record
diff calls this method in context of new record
diff calls this method in context of new record
def follower_uids
    if new_record?
      @follower_uids
    else
      if instance_variable_defined?(:@persisted_follower_uids)
        @persisted_follower_uids
      else
        @persisted_follower_uids = Efs::TwitterUser.find_by(id)&.fetch(:follower_uids, nil)
        @persisted_follower_uids = S3::Followership.find_by(twitter_user_id: id)&.fetch(:follower_uids, nil) if @persisted_follower_uids.nil?
        @persisted_follower_uids = [] if @persisted_follower_uids.nil?
        @persisted_follower_uids
      end
    end
  end
def follower_uids if new_record? @follower_uids else if instance_variable_defined? ( :@persisted_follower_uids ) @persisted_follower_uids else @persisted_follower_uids = Efs :: TwitterUser . find_by ( id ) &. fetch ( :follower_uids , nil ) @persisted_follower_uids = S3 :: Followership . find_by ( twitter_user_id : id ) &. fetch ( :follower_uids , nil ) if @persisted_follower_uids . nil? @persisted_follower_uids = [ ] if @persisted_follower_uids . nil? @persisted_follower_uids end end end
diff calls this method in context of new record
diff calls this method in context of new record