Sha256: eca48930148221b30b2cca007f02e3e1e9ea130a355eec6b18e2184a43453cd5
Contents?: true
Size: 636 Bytes
Versions: 10
Compression:
Stored size: 636 Bytes
Contents
# Copyright (c) 2008-2013 Michael Dvorkin and contributors. # # Fat Free CRM is freely distributable under the terms of MIT license. # See MIT-LICENSE file or http://www.opensource.org/licenses/mit-license.php #------------------------------------------------------------------------------ namespace :ffcrm do desc "Generate a secret token for Rails to use." task :secret do require 'securerandom' secret = SecureRandom.hex(64) filename = File.join(Rails.root, 'config', 'initializers', 'secret_token.rb') File.open(filename, 'w'){|f| f.puts "FatFreeCRM::Application.config.secret_token = '#{secret}'"} end end
Version data entries
10 entries across 10 versions & 1 rubygems