Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #104 from msevestre/master

Bug in the admin when a comma was at the end of the tag list
  • Loading branch information...
commit 6b8a6d7f99da681bdbaf532a37abe249e66551c5 2 parents 2387fdb + ef8c94e
@jipiboily authored
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.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
Please sign in to comment.
Something went wrong with that request. Please try again.