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
5796caca
Commit
5796caca
authored
Aug 31, 2017
by
ivan Lan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix spell mistake
parent
786618ae
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
README.md
README.md
+1
-1
models_generator.rb
lib/generators/shotengai/models_generator.rb
+1
-1
product.rb
lib/generators/templates/models/product.rb
+1
-1
No files found.
README.md
View file @
5796caca
...
...
@@ -36,7 +36,7 @@ For example:
```
shell
$
rails g shotengai:models
--product
MyProduct
--order
MyOrder
```
This will create
two model file
:
This will create
several model files
:
create app/models/my_product.rb
create app/models/my_product_series.rb
create app/models/my_product_snapshot.rb
...
...
lib/generators/shotengai/models_generator.rb
View file @
5796caca
...
...
@@ -11,7 +11,7 @@ module Shotengai
Use --catalog to custom your own catalog class
For example:
rails g shotengai:models --product MyProduct --order MyOrder
rails g shotengai:models --product MyProduct --order MyOrder
--catalog Catalog
This will create some model file:
create app/models/my_product.rb
create app/models/my_product_series.rb
...
...
lib/generators/templates/models/product.rb
View file @
5796caca
class
<
%= @product_name %> < Shotengai::Product
join_catalog_system 'Cata
g
log'
join_catalog_system 'Catalog'
end
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