Sha256: 9ac62d17b4809b73bcd77f2b49133576ba4fd68c097353997bc14f970976920a
Contents?: true
Size: 692 Bytes
Versions: 1
Compression:
Stored size: 692 Bytes
Contents
AJAX_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..')) %w[ app/controllers/ajax_controller.rb app/views/ajax/framework.html.erb config/initializers/ajax.rb public/javascripts/ajax.js public/javascripts/jquery.address-1.2rc.js public/javascripts/jquery.address-1.2rc.min.js public/javascripts/jquery.json-2.2.min.js public/images/ajax-loading.gif ].each do |file| if File.exist?(File.join(Rails.root, file)) puts "skipped: #{file} exists!" else begin FileUtils.cp(File.join(AJAX_ROOT, file), File.join(Rails.root, file)) puts "created: #{file}" rescue Exception => e puts "skipped: #{file} #{e.message}" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ajax-0.1.4 | rails/install.rb |