Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
shotengai
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open-source
shotengai
Commits
fdd814c9
Commit
fdd814c9
authored
7 years ago
by
ivan Lan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add alive scope to series in some place
parent
f54e92e0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
_product.json.jbuilder
lib/generators/templates/views/share/_product.json.jbuilder
+1
-1
product.rb
lib/shotengai/product.rb
+1
-1
No files found.
lib/generators/templates/views/share/_product.json.jbuilder
View file @
fdd814c9
...
...
@@ -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
This diff is collapsed.
Click to expand it.
lib/shotengai/product.rb
View file @
fdd814c9
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment