瀏覽代碼

Updated template to use Rails 5.2 and added whenever gem (#32)

William Kennedy 6 年之前
父節點
當前提交
54fabb94f2
共有 1 個文件被更改,包括 8 次插入0 次删除
  1. 8 0
      template.rb

+ 8 - 0
template.rb

@@ -17,6 +17,7 @@ def add_gems
   gem 'omniauth-facebook', '~> 4.0'
   gem 'omniauth-twitter', '~> 1.4'
   gem 'omniauth-github', '~> 1.3'
+  gem 'whenever', require: false
 end
 
 def add_users
@@ -143,6 +144,10 @@ def add_multiple_authentication
           before: "  # ==> Warden configuration"
 end
 
+def add_whenever
+  run "wheneverize ."
+end
+
 # Main setup
 add_gems
 
@@ -165,6 +170,9 @@ after_bundle do
   # Migrations must be done before this
   add_administrate
 
+  add_whenever
+
+
   git :init
   git add: "."
   git commit: %Q{ -m 'Initial commit' }