jaz303 / jquery-bootstrap

Bootstrap Rails project with jQuery libs

This URL has Read+Write access

jquery-bootstrap / install.rb
100644 13 lines (9 sloc) 0.282 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
# Install hook code here
 
require 'fileutils'
 
%w(prototype effects dragdrop controls).each do |js|
  FileUtils.rm_f(File.join(RAILS_ROOT, 'public', 'javascripts', "#{js}.js"))
end
 
FileUtils.cp_r(
  File.join(File.dirname(__FILE__), 'files/.'),
  File.join(RAILS_ROOT, 'public')
)