config/initializers/secret_token_configurator.rb in iqvoc-3.5.3 vs config/initializers/secret_token_configurator.rb in iqvoc-3.5.4
- old
+ new
@@ -15,15 +15,15 @@
# limitations under the License.
# Be sure to restart your server when you modify this file.
if Iqvoc.const_defined?(:Application)
-
+
if ENV['HEROKU']
puts 'heroku app detected; using session secret from config vars...'
Rails.application.config.secret_token = ENV['SECRET_TOKEN']
elsif !File.exists?(Rails.root.join('config', 'initializers', 'secret_token.rb'))
system "bundle exec rake setup:generate_secret_token"
require Rails.root.join('config', 'initializers', 'secret_token.rb')
end
-
+
end