shift / accessible_form_builder
- Source
- Commits
- Network (5)
- Issues (0)
- Downloads (0)
- Wiki (1)
- Graphs
-
Tree:
431c597
accessible_form_builder / install.rb
| 4056ce7a » | shift | 2008-03-09 | 1 | # Install hook code here | |
| 2 | def copy_files(source_path, destination_path, directory) | ||||
| 3 | source, destination = File.join(directory, source_path), File.join(RAILS_ROOT, destination_path) | ||||
| 4 | FileUtils.mkdir(destination) unless File.exist?(destination) | ||||
| 5 | FileUtils.cp_r(Dir.glob(source+'/*.*'), destination) | ||||
| 6 | end | ||||
| 7 | |||||
| 8 | directory = File.dirname(__FILE__) | ||||
| 9 | |||||
| 10 | %w(javascripts).each { |d| | ||||
| 11 | path = "/public/#{d}" | ||||
| 12 | copy_files(path,path,directory) | ||||
| 13 | } | ||||
