Commit 530187bf1e7c010910376d428c7f87bfdaba074e

Authored by Nathan Broadbent
1 parent 79b8e49a
Exists in master and in 1 other branch production

Let's use .present?

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
config/initializers/secret_token.rb
... ... @@ -10,7 +10,7 @@ if %w(development test).include? Rails.env
10 10 Errbit::Application.config.secret_token = 'f258ed69266dc8ad0ca79363c3d2f945c388a9c5920fc9a1ae99a98fbb619f135001c6434849b625884a9405a60cd3d50fc3e3b07ecd38cbed7406a4fccdb59c'
11 11 else
12 12  
13   - if ![nil, ''].include?(ENV['SECRET_TOKEN'])
  13 + if ENV['SECRET_TOKEN'].present?
14 14 Errbit::Application.config.secret_token = ENV['SECRET_TOKEN']
15 15  
16 16 else
... ...