Baby Raindorf Hoodie Robe is annoying. special case it as baby-fitting in the worst hack possible ;P
This commit is contained in:
parent
026bdbbc0c
commit
9c6399a23d
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue