1
0
Fork 0
forked from OpenNeo/impress

Baby Raindorf Hoodie Robe is annoying. special case it as baby-fitting in the worst hack possible ;P

This commit is contained in:
Emi Matchu 2014-12-17 00:54:55 -06:00
parent 026bdbbc0c
commit 9c6399a23d

View file

@ -179,6 +179,12 @@ class Item < ActiveRecord::Base
color = match.captures.detect(&:present?) color = match.captures.detect(&:present?)
return Color.find_by_name(color.downcase) return Color.find_by_name(color.downcase)
end end
# HACK: omg I hate this. why can't the Baby Raindorf Hoodie Robe just
# contain the standard pattern? >_>
if description.include? 'This soft robe is sure to keep your little one warm and toasty.'
return Color.find_by_name('baby')
end
end end
end end
public public