aboutsummaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
authorUģis Ozols <ugis.ozolss@gmail.com>2012-02-02 12:55:50 +0200
committerUģis Ozols <ugis.ozolss@gmail.com>2012-02-02 12:55:50 +0200
commite1d6605d23c9b360dbef3226c1268ca9d4969e60 (patch)
treec942ca7b0442420163841dd953391dfdd62de96d /db
parente63bf074af8806ac643e14a797e6c413d6c64c40 (diff)
downloadrefinerycms-blog-e1d6605d23c9b360dbef3226c1268ca9d4969e60.tar.gz
refinerycms-blog-e1d6605d23c9b360dbef3226c1268ca9d4969e60.tar.bz2
refinerycms-blog-e1d6605d23c9b360dbef3226c1268ca9d4969e60.zip
.find(:all) -> .all
Diffstat (limited to 'db')
-rw-r--r--db/seeds.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/db/seeds.rb b/db/seeds.rb
index d603553..ebc06e7 100644
--- a/db/seeds.rb
+++ b/db/seeds.rb
@@ -1,4 +1,4 @@
-Refinery::User.find(:all).each do |user|
+Refinery::User.all.each do |user|
if user.plugins.where(:name => 'refinerycms_blog').blank?
user.plugins.create(:name => "refinerycms_blog",
:position => (user.plugins.maximum(:position) || -1) +1)