app/models/user.rb
# TODO: I don't see the advantage of normalizing these. Since commas are illegal
# characters in tags, they can be used to separate lines (with whitespace separating
# tags). Denormalizing this into a field in users would save a SQL query.
I don't see the advantage of normalizing these. Since commas are illegal
characters in tags, they can be used to separate lines (with whitespace separating
tags). Denormalizing this into a field in users would save a SQL query.
I don ' t see the advantage of normalizing these . Since commas are illegal characters in tags they can be used to separate lines ( with whitespace separating tags ) . Denormalizing this into a field in users would save a SQL query .
def blacklisted_tags_array
      if user_blacklisted_tags.loaded?
        user_blacklisted_tags.map(&:tags)
      else
        user_blacklisted_tags.pluck(:tags)
      end
    end
def blacklisted_tags_array if user_blacklisted_tags . loaded? user_blacklisted_tags . map ( & :tags ) else user_blacklisted_tags . pluck ( :tags ) end end
TODO: I don't see the advantage of normalizing these.
TODO : I don ' t see the advantage of normalizing these .