class Marked::Generators::InstallGenerator
Public Instance Methods
copy_marked()
click to toggle source
# File lib/generators/marked/install/install_generator.rb, line 11 def copy_marked say_status("copying", "Marked (#{Marked::Rails::MARKED_VERSION})", :green) copy_file "marked.js", "public/javascripts/marked.js" end
do_nothing()
click to toggle source
# File lib/generators/marked/install/install_generator.rb, line 24 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 marked` to your app/assets/javascripts/application.js") say_status("", "If you upgraded your app from Rails < 3.1 and still have marked.js in your javascripts, be sure to remove them.") say_status("", "If you do not want the asset pipeline enabled, you may turn it off in application.rb and re-run this generator.") end