2 次代码提交 ef810c8e03 ... 5f485e64fa

作者 SHA1 备注 提交日期
  ANX 5f485e64fa fix: readme 6 年之前
  ANX ef810c8e03 fix: readme 6 年之前
共有 3 个文件被更改,包括 7 次插入5 次删除
  1. 5 0
      README.md
  2. 0 3
      app/models/user.rb
  3. 2 2
      template.rb

+ 5 - 0
README.md

@@ -37,3 +37,8 @@ spring stop
 cd ..
 rm -rf myapp
 ```
+
+#### Stimulus (Options)
+```
+$ rake webpacker:install:stimulus
+```

+ 0 - 3
app/models/user.rb

@@ -3,8 +3,5 @@ class User < ApplicationRecord
   # :confirmable, :lockable, :timeoutable and :omniauthable
   devise :database_authenticatable, :registerable, :recoverable, :rememberable, :validatable, :omniauthable
 
-  has_person_name
-
-  has_many :notifications, foreign_key: :recipient_id
   has_many :services
 end

+ 2 - 2
template.rb

@@ -107,7 +107,7 @@ end
 
 def add_webpack
   rails_command 'webpacker:install'
-  rails_command 'webpacker:install:stimulus'
+  # rails_command 'webpacker:install:stimulus'
 end
 
 def add_sidekiq
@@ -168,7 +168,7 @@ after_bundle do
   add_bootstrap
   add_sidekiq
   add_procodile
-  # add_webpack
+  add_webpack
   add_multiple_authentication
 
   copy_templates