Class: PoeRails::InstallGenerator

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

Instance Method Summary collapse

Instance Method Details

#completeObject



25
26
27
28
29
30
31
32
# File 'lib/generators/poe_rails/install/install_generator.rb', line 25

def complete
  unless options[:quiet]
    puts "*" * 50
    puts "PhantomOpenEmojiRails has been installed successfully. You're all ready to go!"
    puts " "
    puts "(、´・ω・)▄︻┻┳═一   Σ==!Enjoy!>"
  end
end

#notify_about_routesObject



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 options[: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