Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix build for travis

  • Loading branch information...
commit 2f29c855dbf5b097caa22a155d830028c46e34d3 1 parent f3f9b4a
@jordanbyron jordanbyron authored
Showing with 4 additions and 2 deletions.
  1. +1 −1  Gemfile
  2. +3 −1 lib/tasks/setup.rake
View
2  Gemfile
@@ -31,11 +31,11 @@ gem 'delayed_job_active_record'
gem 'daemons', :require => false
gem 'whenever'
+gem 'rails_setup'
group :development do
gem 'capistrano'
gem 'capistrano_confirm_branch'
- gem 'rails_setup'
end
group :assets do
View
4 lib/tasks/setup.rake
@@ -1,8 +1,10 @@
+require 'rails_setup'
+
namespace :setup do
desc 'Create initializers from example files'
setup_task :initializers do
initializers_dir = Rails.root.join('config', 'initializers')
- secret_token = initializers_dir.join('secret_token.rb')
+ secret_token = initializers_dir.join('secret_token.rb').to_s
unless File.exists?(secret_token)
secret = SecureRandom.hex(64)
Please sign in to comment.
Something went wrong with that request. Please try again.