Class: Talkable::InviteStandaloneGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Talkable::InviteStandaloneGenerator
- Includes:
- SharedGeneratorMethods
- Defined in:
- lib/talkable/generators/invite_standalone_generator.rb
Instance Method Summary collapse
Methods included from SharedGeneratorMethods
Instance Method Details
#add_invite_controller ⇒ Object
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 |