lib/generators/templates/rents.rb in rents-1.0.0 vs lib/generators/templates/rents.rb in rents-1.0.1

- old
+ new

@@ -13,22 +13,22 @@ Rents.secret_key = '' # TODO: Uncomment test_env if you want to test using RentS default & global app # Rents.test_env = true # TODO: Uncomment debugger if you have an RentS instance on your machine - # Rents.debugger = true + # Rents.debug = true elsif Rails.env.production? # TODO if using Rails 3 or older, put here your PRODUCTION app_id & your secret_key Rents.app_id = '' Rents.secret_key = '' # For production remember to keep it false or just remove it Rents.test_env = false - Rents.debugger = false + Rents.debug = false end # Get your App config if your not using TEST_ENV nor DEBUGGER -if (Rents.test_env.nil? && Rents.debugger.nil?) || (Rents.test_env == false && Rents.debugger == false) +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'] end end