Class: PoeRails::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- PoeRails::InstallGenerator
- Defined in:
- lib/generators/poe_rails/install/install_generator.rb
Instance Method Summary collapse
Instance Method Details
#complete ⇒ Object
25 26 27 28 29 30 31 32 |
# File 'lib/generators/poe_rails/install/install_generator.rb', line 25 def complete unless [:quiet] puts "*" * 50 puts "PhantomOpenEmojiRails has been installed successfully. You're all ready to go!" puts " " puts "(、´・ω・)▄︻┻┳═一 Σ==!Enjoy!>" end end |
#notify_about_routes ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/generators/poe_rails/install/install_generator.rb', line 9 def notify_about_routes insert_into_file File.join('config', 'routes.rb'), :after => "Application.routes.draw do\n" do %Q{ mount PoeRails::Engine, :at => '/poe' } end unless [:quiet] puts "*" * 50 puts "We added the following line to your application's config/routes.rb file:" puts " " puts " mount PoeRails::Engine, :at => '/poe'" end end |