Class: Talkable::InviteStandaloneGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Includes:
SharedGeneratorMethods
Defined in:
lib/talkable/generators/invite_standalone_generator.rb

Instance Method Summary collapse

Methods included from SharedGeneratorMethods

#erb?, #template_lang

Instance Method Details

#add_invite_controllerObject



11
12
13
14
15
16
17
# File 'lib/talkable/generators/invite_standalone_generator.rb', line 11

def add_invite_controller
  ext = template_lang

  copy_file "app/controllers/invite_controller.rb", "app/controllers/invite_controller.rb"
  copy_file "app/views/invite/show.html.#{ext}", "app/views/invite/show.html.#{ext}"
  route "get '/invite' => 'invite#show'"
end