class Unveil::Rails::InstallGenerator
Public Instance Methods
copy_blank_gif_into_app_images()
click to toggle source
# File lib/unveil/rails/install_generator.rb, line 15 def copy_blank_gif_into_app_images copy_file 'blank.gif', 'app/assets/images/blank.gif' end
copy_initializer()
click to toggle source
# File lib/unveil/rails/install_generator.rb, line 6 def copy_initializer initializer 'unveil.rb' do <<-CONFIG Unveil::Rails.config.threshold = nil Unveil::Rails.config.default_placeholder = 'blank.gif' CONFIG end end
copy_unveil_into_vendor()
click to toggle source
# File lib/unveil/rails/install_generator.rb, line 19 def copy_unveil_into_vendor copy_file 'jquery.unveil.js', 'vendor/assets/javascripts/jquery.unveil.js' copy_file 'unveil_init.js.erb', 'vendor/assets/javascripts/unveil_init.js.erb' puts '' puts 'Please add the following line to your JS:' puts '' puts ' //= require unveil_init' puts '' end