Skip to content

Commit

Permalink
Ensure that all settings have been accessed once while seeding, there…
Browse files Browse the repository at this point in the history
…by creating them.
  • Loading branch information
parndt committed Mar 23, 2012
1 parent 573627d commit 9524442
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions db/seeds.rb
Expand Up @@ -52,3 +52,7 @@
})
end
end

(Refinery::Inquiries::Setting.methods.sort - ActiveRecord::Base.methods).each do |setting|
Refinery::Inquiries::Setting.send(setting) unless setting.to_s =~ /=$/
end

0 comments on commit 9524442

Please sign in to comment.