config/initializers/settings.rb in astrochimp-0.1.0 vs config/initializers/settings.rb in astrochimp-0.1.2
- old
+ new
@@ -11,5 +11,15 @@
config.each do |key, value|
key = 'AC_' + key.upcase
ENV[key] = value.to_s if !value.kind_of?(Hash) && ENV[key].blank?
end
+#if File.basename($0) != 'rake'
+ #unless ActiveRecord::Base.connection.table_exists?('astrochimp_signups')
+ #raise "\n\nThe Chimp wants you to run rake db:migrate\n\n"
+ #end
+
+ #if ENV['AC_MAILCHIMP_API_KEY'].blank? || ENV['AC_MAILCHIMP_LIST_ID'].blank?
+ #raise "\n\nThe Chimp wants you to set the ENV variables: AC_MAILCHIMP_API_KEY and AC_MAILCHIMP_LIST_ID.\n" <<
+ #"You can also set them in astrochimp.yml if you're an ape.\n\n"
+ #end
+#end