lib/generators/templates/rents.rb in rents-1.0.1 vs lib/generators/templates/rents.rb in rents-1.0.2
- old
+ new
@@ -27,9 +27,13 @@
end
# Get your App config if your not using TEST_ENV nor DEBUGGER
if (Rents.test_env.nil? && Rents.debug.nil?) || (Rents.test_env == false && Rents.debug == false)
if Rails.version[0].to_i >= 4
- Rents.app_id = Rails.application.secrets.rents['app_id']
- Rents.secret_key = Rails.application.secrets.rents['app_secret_key']
+ begin
+ Rents.app_id = Rails.application.secrets.rents['app_id']
+ Rents.secret_key = Rails.application.secrets.rents['app_secret_key']
+ rescue
+ p 'Check your Secret.yml... Please add on it your Rent$ app_id & app_secret_key'
+ end
end
end