This commit is contained in:
r888888888
2013-06-20 15:55:06 -07:00
parent 317dee767d
commit 3150b53146

View File

@@ -450,10 +450,12 @@ class Post < ActiveRecord::Base
end end
when /^rating:([qse])/i when /^rating:([qse])/i
unless is_rating_locked?
self.rating = $1.downcase self.rating = $1.downcase
end end
end end
end end
end
def has_tag?(tag) def has_tag?(tag)
tag_string =~ /(?:^| )#{tag}(?:$| )/ tag_string =~ /(?:^| )#{tag}(?:$| )/