class PostMassage::Generators::InstallGenerator

Public Instance Methods

copy_post_massage() click to toggle source
# File lib/generators/post_massage/install/install_generator.rb, line 12
def copy_post_massage
  say_status("copying", "PostMassage (#{PostMassage::Rails::POST_MASSAGE_VERSION})", :green)
  copy_file "post-massage.js", "public/javascripts/post-massage.js"
end
do_nothing() click to toggle source
# File lib/generators/post_massage/install/install_generator.rb, line 26
def do_nothing
  say_status("deprecated", "You are using Rails 3.1 with the asset pipeline enabled, so this generator is not needed.")
  say_status("", "The necessary files are already in your asset pipeline.")
  say_status("", "Just add `//= require post-massage` to your app/assets/javascripts/application.js")
  say_status("", "If you do not want the asset pipeline enabled, you may turn it off in application.rb and re-run this generator.")
  # ok, nothing
end