public
Description: A slight advancement on pretty_accessible_form
Homepage: http://rwvhp.com
Clone URL: git://github.com/shift/accessible_form_builder.git
100644 14 lines (11 sloc) 0.428 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# Install hook code here
def copy_files(source_path, destination_path, directory)
  source, destination = File.join(directory, source_path), File.join(RAILS_ROOT, destination_path)
  FileUtils.mkdir(destination) unless File.exist?(destination)
  FileUtils.cp_r(Dir.glob(source+'/*.*'), destination)
end
 
directory = File.dirname(__FILE__)
 
%w(javascripts).each { |d|
  path = "/public/#{d}"
  copy_files(path,path,directory)
}