Class: Jquery::FinalCountdown::Generators::InstallGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/jquery/final_countdown/install/install_generator.rb,
lib/generators/jquery/final_countdown/install/install_generator.rb

Instance Method Summary collapse

Instance Method Details

#copy_jquery_final_countdownObject



13
14
15
16
17
# File 'lib/generators/jquery/final_countdown/install/install_generator.rb', line 13

def copy_jquery_final_countdown
  say_status("copying", "jQuery.countdown (#{Jquery::FinalCountdown::Rails::VERSION})", :green)
  copy_file "jquery.countdown.js", "public/javascripts/jquery.countdown.js"
  copy_file "jquery.countdown.min.js", "public/javascripts/jquery.countdown.min.js"
end

#do_nothingObject



29
30
31
32
# File 'lib/generators/jquery/final_countdown/install/install_generator.rb', line 29

def do_nothing
  say("The jQuery.countdown is ready to use in your asset pipeline.", :green)
  say("Just add `//= require jquery.countdown` to your app/assets/javascripts/application.js and that's it!", :green)
end