Class: Gmaps::Generators::InstallGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Includes:
Rails::Generators::Migration
Defined in:
lib/generators/gmaps/install_generator.rb

Instance Method Summary collapse

Instance Method Details

#copy_jsfileObject



14
15
16
17
18
# File 'lib/generators/gmaps/install_generator.rb', line 14

def copy_jsfile
  ["locations.js.coffee"].each do |file|
    copy_file "../../../app/assets/javascripts/#{file}", "app/assets/javascripts/#{file}"
  end
end