diff options
author | Philip Arndt <parndt@gmail.com> | 2010-08-26 21:36:48 +1200 |
---|---|---|
committer | Philip Arndt <parndt@gmail.com> | 2010-08-26 21:36:48 +1200 |
commit | 23d647243813c45b759f5dda418dfa6c583f3e37 (patch) | |
tree | da6d236db1080b5b2d28d46b1d32590b3969203b /generators | |
parent | 2a8e663495fd196286925717aa78c72e1f217a3f (diff) | |
download | refinerycms-blog-23d647243813c45b759f5dda418dfa6c583f3e37.tar.gz refinerycms-blog-23d647243813c45b759f5dda418dfa6c583f3e37.tar.bz2 refinerycms-blog-23d647243813c45b759f5dda418dfa6c583f3e37.zip |
Time for an RC
Diffstat (limited to 'generators')
-rw-r--r-- | generators/refinery_blog/refinery_blog_generator.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/generators/refinery_blog/refinery_blog_generator.rb b/generators/refinery_blog/refinery_blog_generator.rb index 7bd4454..524868b 100644 --- a/generators/refinery_blog/refinery_blog_generator.rb +++ b/generators/refinery_blog/refinery_blog_generator.rb @@ -13,7 +13,11 @@ class RefineryBlogGenerator < Rails::Generator::NamedBase def manifest record do |m| if Rails.version < '3.0.0' - matches = Dir[File.expand_path('../../../public/images/**/*', __FILE__)] + matches = Dir[ + File.expand_path('../../../public/images/**/*', __FILE__), + File.expand_path('../../../public/stylesheets/**/*', __FILE__), + File.expand_path('../../../public/javascripts/**/*', __FILE__), + ] matches.reject{|d| !File.directory?(d)}.each do |dir| m.directory((%w(public) | dir.split('public/').last.split('/')).join('/')) end @@ -22,7 +26,7 @@ class RefineryBlogGenerator < Rails::Generator::NamedBase m.template "../../../#{path}/#{image.split('/').last}", "#{path}/#{image.split('/').last}" end end - + m.template('seed.rb', 'db/seeds/refinerycms_blog.rb') m.migration_template('migration.rb', 'db/migrate', |