From a8504adfd632a55ebe6b7adecc7676baba2c7a49 Mon Sep 17 00:00:00 2001 From: djones Date: Tue, 14 Sep 2010 13:30:19 +1200 Subject: fix a bug in the rails 2.x generator where it doesn't create the seeds directory --- generators/refinery_blog/refinery_blog_generator.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'generators/refinery_blog/refinery_blog_generator.rb') diff --git a/generators/refinery_blog/refinery_blog_generator.rb b/generators/refinery_blog/refinery_blog_generator.rb index 076f709..0748bf9 100644 --- a/generators/refinery_blog/refinery_blog_generator.rb +++ b/generators/refinery_blog/refinery_blog_generator.rb @@ -24,7 +24,8 @@ class RefineryBlogGenerator < Rails::Generator::NamedBase path = (%w(public) | image.split('public/').last.split('/'))[0...-1].join('/') m.template "../../../#{path}/#{image.split('/').last}", "#{path}/#{image.split('/').last}" end - + + m.directory('db/seeds') m.template('db/seeds/seed.rb', 'db/seeds/refinerycms_blog.rb') m.migration_template('db/migrate/migration.rb', 'db/migrate', -- cgit v1.2.3