Compare commits
No commits in common. "09e5a39b4cd84623bbc1477d23b2956b8767a512" and "7607c2c015a0ab8cf4bb1f786d256f79e55b066f" have entirely different histories.
09e5a39b4c
...
7607c2c015
2 changed files with 1 additions and 2 deletions
|
@ -90,7 +90,7 @@ class AltStyle < ApplicationRecord
|
||||||
)
|
)
|
||||||
DEFAULT_THUMBNAIL_URL = "https://images.neopets.com/items/mall_bg_circle.gif"
|
DEFAULT_THUMBNAIL_URL = "https://images.neopets.com/items/mall_bg_circle.gif"
|
||||||
def infer_thumbnail_url
|
def infer_thumbnail_url
|
||||||
if real_series_name?
|
if has_real_series_name?
|
||||||
self.thumbnail_url = THUMBNAIL_URL_TEMPLATE.expand(
|
self.thumbnail_url = THUMBNAIL_URL_TEMPLATE.expand(
|
||||||
series: series_name.gsub(/\s+/, '').downcase,
|
series: series_name.gsub(/\s+/, '').downcase,
|
||||||
color: color.name.gsub(/\s+/, '').downcase,
|
color: color.name.gsub(/\s+/, '').downcase,
|
||||||
|
|
|
@ -78,7 +78,6 @@ class Pet < ApplicationRecord
|
||||||
pose: self.pet_state.pose,
|
pose: self.pet_state.pose,
|
||||||
state: self.pet_state.id,
|
state: self.pet_state.id,
|
||||||
objects: self.items.map(&:id),
|
objects: self.items.map(&:id),
|
||||||
style: self.alt_style ? self.alt_style.id : nil,
|
|
||||||
}.to_query
|
}.to_query
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue