Commit fdd814c9 by ivan Lan

Add alive scope to series in some place

parent f54e92e0
......@@ -5,4 +5,4 @@ json.spec product.spec_output
# TODO: NOTE: catalog_list is only vaild in the template example
json.catalog_list product.catalog_list if product.respond_to?(:catalog_list)
json.default_series product.default_series, partial: 'shotengai/share/series_simple', as: :series
json.series product.series, partial: 'shotengai/share/series_simple', as: :series
json.series product.series.alive, partial: 'shotengai/share/series_simple', as: :series
......@@ -71,7 +71,7 @@ module Shotengai
end
def default_series
Shotengai::Series.find_by_id(default_series_id) || series.first
Shotengai::Series.alive.find_by_id(default_series_id) || series.alive.first
end
def meta
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment