Class: Autocomplete::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Autocomplete::InstallGenerator
- Defined in:
- lib/generators/autocomplete/install_generator.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.source_root ⇒ Object
10 11 12 |
# File 'lib/generators/autocomplete/install_generator.rb', line 10 def self.source_root File.join(File.dirname(__FILE__), '..', '..', 'assets', 'javascripts') end |
Instance Method Details
#install ⇒ Object
5 6 7 8 |
# File 'lib/generators/autocomplete/install_generator.rb', line 5 def install # Copy the unobtrusive JS file copy_file('autocomplete-rails.js', 'public/javascripts/autocomplete-rails.js') end |