Class: Puller::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Puller::Generators::InstallGenerator
- Defined in:
- lib/generators/puller/install_generator.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.source_root ⇒ Object
4 5 6 |
# File 'lib/generators/puller/install_generator.rb', line 4 def self.source_root File.dirname(__FILE__) + "/templates" end |
Instance Method Details
#copy_files ⇒ Object
8 9 10 11 12 |
# File 'lib/generators/puller/install_generator.rb', line 8 def copy_files if ::Rails.version < "3.1" copy_file "../../../../app/assets/javascripts/puller.js", "public/javascripts/puller.js" end end |