Sha256: 9d836477f4dd13e688efc8da2996d51d92d489b8aac3cacc8ec97f94cb40c5b1

Contents?: true

Size: 698 Bytes

Versions: 2

Compression:

Stored size: 698 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/loading-icon-small.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

2 entries across 2 versions & 1 rubygems

Version Path
ajax-0.1.3 rails/install.rb
ajax-0.1.2 rails/install.rb