Yeah it works fine. The problem is that the follow functionality is
implemented with Tag objects, and tagging is ActsAsTaggableOn::Tag objects.
I'm not sure if there's a way to simplify the first part of the expression.

*Nikhil Goel* | Vanderbilt University, 2013 | Computer Engineering,
Economics**

LinkedIn <http://www.linkedin.com/in/ngoel1> |* ngoel36@gmail.com | ( (256)
503-9183 | NikhilGoel.me <http://nikhilgoel.me/>


On Fri, Jan 25, 2013 at 7:35 PM, Luke Steensen <notifications@github.com>wrote:

> In app/mailers/user_mailer.rb:
>
> >    end
> > +
> > +  def video_tag_notification(video)
> > +    sendgrid_category "Video Tag Notification"
> > +    @video = video
> > +    # Get all  users who follow each tag for video. Then flatten. Then delete duplicates. Then delete those w/o emails
> > +    following_users = Tag.find(@video.tags.map(&:id)).map(&:followers).flatten.uniq.delete_if{ |u| u.email.nil? }
>
> I'll try to clean this up soon. It definitely works the way you want it to
> right now though?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/bitcast/bitcast/pull/127/files#r2783739>.
>
>