diff --git a/config/initializers/fetch_featured_users.rb b/config/initializers/fetch_featured_users.rb index c53ab20ff..039978841 100644 --- a/config/initializers/fetch_featured_users.rb +++ b/config/initializers/fetch_featured_users.rb @@ -1,5 +1,10 @@ #this breaks seed scripts +if AppConfig[:featured_users].present? && AppConfig[:community_spotlight].blank? + AppConfig[:community_spotlight] = AppConfig[:featured_users] + puts "DEPRICATION WARNING (10/21/11): Please change `featured_users` in your applicaiton.yml to `community_spotlight`. Thanks!" +end + unless !ActiveRecord::Base.connection.table_exists?('people') || Rails.env == 'test' || AppConfig[:community_spotlight].nil? || AppConfig[:community_spotlight].count == Person.community_spotlight.count print "Fetching community spotlight users from remote servers" AppConfig[:community_spotlight].each do |x|