Class: Remotipart::Generators::InstallGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/remotipart/install/install_generator.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) install_iframe_transport



10
11
12
13
# File 'lib/generators/remotipart/install/install_generator.rb', line 10

def install_iframe_transport
  say_status "copying", "IframeTransport.js #{Remotipart::Rails::IFRAMETRANSPORT_VERSION}", :green
  copy_file "jquery.iframe-transport.js", "public/javascripts/jquery.iframe-transport.js"
end

- (Object) install_remotipart



15
16
17
18
# File 'lib/generators/remotipart/install/install_generator.rb', line 15

def install_remotipart
  say_status "copying", "Remotipart.js #{Remotipart::Rails::VERSION}", :green
  copy_file 'jquery.remotipart.js', 'public/javascripts/jquery.remotipart.js'
end