Fix seeds.rb to use new CatarseSettings class

Esse commit está contido em:
Dima Knivets
2014-04-12 19:47:05 +03:00
commit 71f81102f8
+2 -2
Ver Arquivo
@@ -71,7 +71,7 @@ puts 'Seeding the database...'
github_url: 'http://github.com/catarse',
contato_url: 'http://suporte.catarse.me/'
}.each do |name, value|
conf = Configuration.find_or_initialize_by(name: name)
conf = CatarseSettings.find_or_initialize_by(name: name)
conf.update_attributes({
value: value
}) if conf.new_record?
@@ -110,7 +110,7 @@ puts '============================================='
puts ' Showing all entries in Configuration Table...'
puts '---------------------------------------------'
Configuration.all.each do |conf|
CatarseSettings.all.each do |conf|
a = conf.attributes
puts " #{a['name']}: #{a['value']}"
end