Sha256: 25750b268d4a9c784c36934d9a0b2ffca18c97038a9ba10b8f24fcc93486d9a1
Contents?: true
Size: 663 Bytes
Versions: 9
Compression:
Stored size: 663 Bytes
Contents
module Gmaps4rails module Generators class InstallGenerator < Rails::Generators::Base source_root File.expand_path('../../templates', __FILE__) desc 'Creates a Gmaps4rails initializer and copies the assets to the public folder.' def copy_locale copy_file '../../../public/javascripts/gmaps4rails.js', 'public/javascripts/gmaps4rails.js' copy_file '../../../public/stylesheets/gmaps4rails.css', 'public/stylesheets/gmaps4rails.css' copy_file '../../../public/images/marker.png', 'public/images/marker.png' end def show_readme readme 'README' if behavior == :invoke end end end end
Version data entries
9 entries across 9 versions & 1 rubygems