From 9c6399a23dd6ca25a06acea96244adf44b984422 Mon Sep 17 00:00:00 2001 From: Matchu Date: Wed, 17 Dec 2014 00:54:55 -0600 Subject: [PATCH] Baby Raindorf Hoodie Robe is annoying. special case it as baby-fitting in the worst hack possible ;P --- app/models/item.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/models/item.rb b/app/models/item.rb index 68a4e1f7..a7f9067c 100644 --- a/app/models/item.rb +++ b/app/models/item.rb @@ -179,6 +179,12 @@ class Item < ActiveRecord::Base color = match.captures.detect(&:present?) return Color.find_by_name(color.downcase) 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 public