app/controllers/application_controller.rb
def clean_app()
    wd = FileUtils.pwd()
    FileUtils.rm_f( [
      '/app/assets/*',
      '/app/components/*',
      '/app/controllers/*',
      '/app/helpers/*',
      '/app/models/*',
      '/app/views/*'
    ].collect!{|e| Dir.glob(wd + e)}.flatten.compact )
  end
# Clean up almost everything from app subfolders.
Clean up almost everything from app subfolders.
Clean up almost everything from app subfolders .
def clean_app()
    wd = FileUtils.pwd()
    FileUtils.rm_f( [
      '/app/assets/*',
      '/app/components/*',
      '/app/controllers/*',
      '/app/helpers/*',
      '/app/models/*',
      '/app/views/*'
    ].collect!{|e| Dir.glob(wd + e)}.flatten.compact )
  end
def clean_app ( ) wd = FileUtils . pwd ( ) FileUtils . rm_f ( [ '/app/assets/*' , '/app/components/*' , '/app/controllers/*' , '/app/helpers/*' , '/app/models/*' , '/app/views/*' ] . collect! { | e | Dir . glob ( wd + e ) } . flatten . compact ) end
Clean up almost everything from app subfolders.
Clean up almost everything from app subfolders .