Permalink
Browse files

Bugs corrected when a comma was at the end if the tag list such as Ta…

…g1, Tag2,
  • Loading branch information...
1 parent f7fa45b commit ef8c94ede2ab925803810ff6b00c1df956cb4ecf Michael Sevestre committed Oct 2, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 app/models/monologue/post.rb
@@ -30,7 +30,9 @@ def active_revision
def tag!(tags)
self.tags = tags.map do |tag|
tag.strip!
- Monologue::Tag.find_or_create_by_name(tag)
+ if tag.present?
+ Monologue::Tag.find_or_create_by_name(tag)
+ end
end
end

0 comments on commit ef8c94e

Please sign in to comment.