diff options
author | Philip Arndt <parndt@gmail.com> | 2010-10-13 13:31:13 +1300 |
---|---|---|
committer | Philip Arndt <parndt@gmail.com> | 2010-10-13 13:31:13 +1300 |
commit | c6a90585dff1a9ab10b84351c66785d00df9fc15 (patch) | |
tree | 5d1833defe17dfb113286768e6ad7bd84f4081d0 /lib | |
parent | 4a94a73eabbdfd3b09ae596506b18524f4816617 (diff) | |
download | refinerycms-blog-c6a90585dff1a9ab10b84351c66785d00df9fc15.tar.gz refinerycms-blog-c6a90585dff1a9ab10b84351c66785d00df9fc15.tar.bz2 refinerycms-blog-c6a90585dff1a9ab10b84351c66785d00df9fc15.zip |
Use refinerycms_blog not singular_name which may be blog_structure. Closes GH-7
Diffstat (limited to 'lib')
-rw-r--r-- | lib/generators/refinery_blog/templates/db/seeds/seed.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/generators/refinery_blog/templates/db/seeds/seed.rb b/lib/generators/refinery_blog/templates/db/seeds/seed.rb index 72648d3..f958fab 100644 --- a/lib/generators/refinery_blog/templates/db/seeds/seed.rb +++ b/lib/generators/refinery_blog/templates/db/seeds/seed.rb @@ -1,5 +1,5 @@ User.find(:all).each do |user| - user.plugins.create(:name => "<%= singular_name %>", + user.plugins.create(:name => "refinerycms_blog", :position => (user.plugins.maximum(:position) || -1) +1) end |