Permalink
Browse files

Fixes Issue #468 - https://github.com/justinfrench/formtastic/issues/…

…#issue/468 - where the directories config/initializers and public/stylesheets are removed on running the destroy generator, regardless of other files that they contain.
  • Loading branch information...
1 parent b6e580d commit 5a73707afdef8291a6281b668d68b4403f27e087 @vijaydev vijaydev committed Dec 12, 2010
Showing with 0 additions and 2 deletions.
  1. +0 −2 lib/generators/formtastic/install/install_generator.rb
@@ -6,10 +6,8 @@ class InstallGenerator < Rails::Generators::Base
source_root File.expand_path('../../../templates', __FILE__)
def copy_files
- empty_directory 'config/initializers'
template 'formtastic.rb', 'config/initializers/formtastic.rb'
- empty_directory 'public/stylesheets'
template 'formtastic.css', 'public/stylesheets/formtastic.css'
template 'formtastic_changes.css', 'public/stylesheets/formtastic_changes.css'
end

0 comments on commit 5a73707

Please sign in to comment.