Permalink
Browse files

Merge branch 'master' of github.com:msevestre/monologue

  • Loading branch information...
2 parents ce0764d + ef8c94e commit 7e5556662b088e0e32a2ebfe548a1f4a3667c5e4 @msevestre msevestre committed Oct 2, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 app/models/monologue/post.rb
View
4 app/models/monologue/post.rb
@@ -30,7 +30,9 @@ def active_revision
def tag!(tags)
self.tags = tags.select { |t| t.present? }.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 7e55566

Please sign in to comment.